-
Notifications
You must be signed in to change notification settings - Fork 50
Advanced direct access
pgen edited this page Sep 2, 2018
·
3 revisions
The -D
option allows to tune the behaviour of the -N
and -F
options.
This page gives sove precisions on how to use it, see the manual for a complete description of it.
To start, here is an example of advanced direct access usage:
smenu -c -N t -F -D o:0 f:no n:1 i:1 w:2 s:10
Options meanings:
-c
column mode-N
auto numbering mode of words containing a t
-F
use embedded numbers in words if any-D
companion option for -N and -FSub-option | Meaning |
---|---|
o:0 |
the embedded number starts at offset 0 |
f:no |
do not follow the numbering given by the last embedded numbea |
n:1 |
the extracted embedded number in 1 digit wide in the input |
i:1 |
1 multibytes to ignore after the embedded number |
w:2 |
the resulting direct access tag will be 2 characters wide |
s:10 |
force the first automatic number to start at 10 |
1 digit wide |1 character to skip to reach the word after the embedded number || vv -- 5 test1 <-- the input word ^ | offset 0 from the start of the input word
Now, here are some uses of the l
, r
, w
and a
sub-options
of the -D
option with the -N
option:
smenu illustrated concepts and examples: