dot

packages and services management
Log | Files | Refs | README

commit 687ecbc62f14b3202c7493ca5e72bb17acad8bdb
parent 2f1c6507496ca739808132b65f85f793f54c0260
Author: josuah <mail@josuah.net>
Date:   Fri, 18 Nov 2016 22:14:04 -0500

Latest iomenu version

Diffstat:
Mbin/buffer | 2+-
Dbin/complete | 46----------------------------------------------
Mbuild/iomenu | 2+-
3 files changed, 2 insertions(+), 48 deletions(-)

diff --git a/bin/buffer b/bin/buffer @@ -152,7 +152,7 @@ attach() name="$( abduco | tr ! / | - sed -r '1d; s/(.*)\t(.*)/\2 # \1/' | + sed -r '1 s/^/# /; s/(.*)\t(.*)/\2 # \1/' | iomenu -s '#' -l 8 | tr / ! )" diff --git a/bin/complete b/bin/complete @@ -1,46 +0,0 @@ -# | | -# ,--. ,--. --.-. ---. | ,--. |-- ,--. -# | | | | | | | | | |--' | |--' -# `--' `--' ' ' ' |--' ' `--' ' `--' 2016-10-08 -#-----------------|------------------------------------------------------------- -# Complete string with a word from a file. - -help=' -Usage: complete OPTION FILE - -FILE - file to search candidates from - -OPTION - -w complete by word - -l complete by line -' NL=' -' - -[ "$#" = 0 ] && printf '%s\n' "$help" && exit 0 -while [ "$#" -gt 0 ] -do - case "$1" in - -w | -l ) ACTION="$1" ;; - -* ) printf '%s\n' "$help" && exit 0 ;; - * ) file="$1" ;; - esac - - shift -done - -IFS='' read -r prefix - -case "$ACTION" in --w ) - sed 's/[[:space:]]/\n/g' "$file" | sort -u | while read word - do [ -z "${word##$prefix*}" ] && printf '%s\n' "$word" - done | iomenu | { - IFS="$NL" read -r word - printf '%s\n' "$word" - } - ;; --l ) - iomenu < "$file" - ;; -esac diff --git a/build/iomenu b/build/iomenu @@ -1,3 +1,3 @@ # Input/Output interactive menu and completion engine. -tar=http://repo.or.cz/iomenu.git/snapshot/b2909af8d0a15cda42fcb577be4f9aba54f0c3b7.tar.gz +tar=http://repo.or.cz/iomenu.git/snapshot/2cad1b6e9e78637a21e7d5877113e7f5e5d75d98.tar.gz