From 52eed4952729061a83112769db6067201324ebf6 Mon Sep 17 00:00:00 2001 From: pgen Date: Sat, 17 Feb 2018 20:07:09 +0100 Subject: Add a new direct access method to select words The -N option allows the user to number selected words matching a regular expression and gives him the possibility to have direct access to these words by entering their number. --- examples/lvm_menu/menu.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/lvm_menu/menu.sh b/examples/lvm_menu/menu.sh index 58372ba..e3854bb 100755 --- a/examples/lvm_menu/menu.sh +++ b/examples/lvm_menu/menu.sh @@ -56,9 +56,11 @@ fi REP=$(../../smenu "$TITLE" \ -s /Exit \ -q -d -M -n 30 -c -w \ + -N "Exit menu" e:r \ + -a da:3,b \ -e '^#' -E '/(^#)+(.*)$/ \2/v' \ - -1 '\\* Exit' 7/4,b \ - -I '/([^ ]+) (.*)/* \2/v' \ + -1 'Exit' 2,r \ + -I '/([^ ]+) (.*)/\2/v' \ $1 \ || echo Abort) -- cgit v1.2.3