summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-02-17 20:07:09 +0100
committerpgen <p.gen.progs@gmail.com>2018-02-20 01:03:33 +0100
commit52eed4952729061a83112769db6067201324ebf6 (patch)
tree91b49c3c49a71772c4b5b6aea272f8ce5678969a /examples
parent5ba3d2e16d88d9445a7a63d786a21b12be4a819c (diff)
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.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/lvm_menu/menu.sh6
1 files changed, 4 insertions, 2 deletions
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)