summaryrefslogtreecommitdiffstats
path: root/smenu.1
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-09-24 00:48:12 +0200
committerpgen <p.gen.progs@gmail.com>2018-10-01 19:36:56 +0200
commit84c6aa41b1dca154b2b215fddecf37da1d900908 (patch)
treee51a6a420aaa2700df0c11fbb034e1cb4495a1a6 /smenu.1
parentcd5ad5c056b6e8f3121adc886e8e7f5daeca6010 (diff)
Improve the o sub-option of the -D option
The offset sub-option can give more latitude to find the number to extract by allowing a '+' after its numeric value.
Diffstat (limited to 'smenu.1')
-rw-r--r--smenu.110
1 files changed, 10 insertions, 0 deletions
diff --git a/smenu.1 b/smenu.1
index 0982ca2..339ad30 100644
--- a/smenu.1
+++ b/smenu.1
@@ -887,6 +887,16 @@ The default value for this directive is '\f(CBkeep\fP'.
\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).
+
+If this offset if immediately followed by the character '\f(CB+\fP',
+then the parser will look for the first number (if any) after the given
+offset instead of using its absolute value to extract the number.
+
+Note that when the '\f(CB+\fP' is used, it is necessary that the length
+of all the numbers to extract have the same size as the algorithm looks
+for a digit to identify the beginning of the number to extract.
+Hence, for example, \fB1\fP should appear as \fB01\fP in the input is
+\f(CBn\fP is set to \f(CB2\fP.
.
.TP
\f(CBn\fP (\fB-F\fP option)