summaryrefslogtreecommitdiffstats
path: root/smenu.1
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-08-04 17:31:52 +0200
committerpgen <p.gen.progs@gmail.com>2018-08-04 17:31:52 +0200
commite52bc0c6d0f72fba73a4e4a13c7c31f362565bbd (patch)
tree7b8e59bc38eb2aa1078446e548012838ae555972 /smenu.1
parentc7e38f5559e9378f4d991dfd32a2f173f7618fc2 (diff)
Add a 'h' directive to the -D option
Diffstat (limited to 'smenu.1')
-rw-r--r--smenu.114
1 files changed, 13 insertions, 1 deletions
diff --git a/smenu.1 b/smenu.1
index 0f5da71..4f00d5d 100644
--- a/smenu.1
+++ b/smenu.1
@@ -34,7 +34,7 @@ and outputs the selection to stdout.
<row selectors> ::= \fIcol1\fP[-\fIcol2\fP],...|\fI<RE>\fP,...
<sub-option> ::= [l|r:<char>]|[a:left|right]|[p:included|all|
[w:<num>]|[f:yes|no]|[o:<num>]|[n:<num>]|
- [i:<num>]|[d:<char>]|[s:<num>]
+ [i:<num>]|[d:<char>]|[s:<num>]|[h:trim|cut|keep]
<ATTR> ::= [fg][/bg][,style]
<RE> ::= \fB<char>\fIregex\fB<char>\fR
@@ -848,6 +848,18 @@ extracted number (defaults to \f(CByes\fP) or if it must remain
independent.
.
.TP
+\f(CBh\fP (\fB-F\fP option)
+Tells what to do with the characters present before the embedded number if
+any.
+
+The allowed directives are: '\f(CBtrim\fP' which discads them if they
+form an empty word (only made of spaces and tabulations), '\f(CBcut\fP'
+which unconditionnaly discards them and '\f(CBkeep\fP' which places them
+at the beginning of the resulting word.
+
+The default value for this directive is '\f(CBkeep\fP'.
+.
+.TP
\f(CBo\fP (\fB-F\fP option)
Here \fBy\fP is the \fIo\fPffset of the first multibyte character of
the number to extract from the word (defaults to \f(CB0\fP).