summaryrefslogtreecommitdiffstats
path: root/smenu.1
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2016-11-24 22:44:51 +0100
committerpgen <p.gen.progs@gmail.com>2016-11-24 23:59:34 +0100
commitbc7f8d6f9a9a22efd293759edf3d5171196693ad (patch)
tree479839230b602a006a005af65ae8797f888355aa /smenu.1
parentcb006dcc8d4ec13aafecf1a06ffb1ca0397016ba (diff)
Add a -k option
When in column or tabular mode, the default was to keep the trailing spaces in the selected word. This commit change that and the default action is now to remove them. The -k option is now available to tell smenu to restore the old behaviour and to keep them.
Diffstat (limited to 'smenu.1')
-rw-r--r--smenu.18
1 files changed, 6 insertions, 2 deletions
diff --git a/smenu.1 b/smenu.1
index 3afc26f..37e363f 100644
--- a/smenu.1
+++ b/smenu.1
@@ -5,8 +5,8 @@ and outputs the selection to stdout.
.SH SYNOPSIS
.nf
\f(CRsmenu [\fB-h\fP] [\fB-n\fP \fIlines\fP] [\fB-t\fP [\fIcols\fP]] \\
- [\fB-s\fP \fIpattern\fP] [\fB-m\fP \fImessage\fP] [\fB-w\fP] [\fB-d\fP] \
-[\fB-M\fP] [\fB-c\fP] [\fB-l\fP] [\fB-r\fP] [\fB-b\fP] \\
+ [\fB-k\fP] [\fB-s\fP \fIpattern\fP] [\fB-m\fP \fImessage\fP] [\fB-w\fP] \\
+ [\fB-d\fP] [\fB-M\fP] [\fB-c\fP] [\fB-l\fP] [\fB-r\fP] [\fB-b\fP] \\
[\fB-i\fP \fIregex\fP] [\fB-e\fP \fIregex\fP] \\
[\fB-C\fP \
[\fIa\fP|\fIA\fP|\fIs\fP|\fIS\fP|\fIr\fP|\fIR\fP|\fId\fP|\fID\fP]\
@@ -240,6 +240,10 @@ and \fB-Z\fP can nevertheless be used to force words to appear in the first
.RS
Note that if this mode each column has the same width.
.RE
+.IP \fB-k\fP
+in column or tabulate mode, the selected word may be smaller than the
+column width. By default these trailing spaces will be removed from the
+output string. This option force them to be kept.
.IP "\fB-s\fP \fIpattern\fP"
Pre-Position the cursor to the first word matching the specified pattern.