Deal with issue #44
This commit is contained in:
parent
f2b56cf11c
commit
cce7ae2e41
|
@ -283,6 +283,9 @@ in the config files.
|
|||
`-sin, --show-input`
|
||||
: Show input
|
||||
|
||||
`-spt, --show-pretext`
|
||||
: Show pretext
|
||||
|
||||
`-spl, --show-powerline`
|
||||
: Show powerline
|
||||
|
||||
|
|
7
spmenu.1
7
spmenu.1
|
@ -1,5 +1,5 @@
|
|||
'\" t
|
||||
.\" Automatically generated by Pandoc 3.1.2
|
||||
.\" Automatically generated by Pandoc 3.1.6
|
||||
.\"
|
||||
.\" Define V font for inline verbatim, using C font in formats
|
||||
.\" that render this, and otherwise B font.
|
||||
|
@ -311,6 +311,9 @@ Show prompt
|
|||
\f[V]-sin, --show-input\f[R]
|
||||
Show input
|
||||
.TP
|
||||
\f[V]-spt, --show-pretext\f[R]
|
||||
Show pretext
|
||||
.TP
|
||||
\f[V]-spl, --show-powerline\f[R]
|
||||
Show powerline
|
||||
.TP
|
||||
|
@ -641,8 +644,6 @@ Of course, more advanced regex can be used as well.
|
|||
There are two modes.
|
||||
Normal mode and Insert mode.
|
||||
These modes are of course similar to Vim.
|
||||
While modes are used by default, it is possible to move all keybinds to
|
||||
Insert mode, restoring the original dmenu behavior.
|
||||
.PP
|
||||
Normal mode is the mode spmenu starts in unless a mode argument is
|
||||
specified or another mode is set in the configuration file.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" Automatically generated by Pandoc 3.1.2
|
||||
.\" Automatically generated by Pandoc 3.1.6
|
||||
.\"
|
||||
.\" Define V font for inline verbatim, using C font in formats
|
||||
.\" that render this, and otherwise B font.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" Automatically generated by Pandoc 3.1.2
|
||||
.\" Automatically generated by Pandoc 3.1.6
|
||||
.\"
|
||||
.\" Define V font for inline verbatim, using C font in formats
|
||||
.\" that render this, and otherwise B font.
|
||||
|
|
|
@ -224,13 +224,15 @@ void readargs(int argc, char *argv[]) {
|
|||
} else if (!strcmp(argv[i], "-hpr") || (!strcmp(argv[i], "--hide-prompt"))) { // hide prompt
|
||||
hideprompt = 1;
|
||||
} else if (!strcmp(argv[i], "-hpt") || (!strcmp(argv[i], "--hide-pretext"))) { // hide pretext
|
||||
hideprompt = 1;
|
||||
hidepretext = 1;
|
||||
} else if (!strcmp(argv[i], "-hpl") || (!strcmp(argv[i], "--hide-powerline"))) { // hide powerline
|
||||
hidepowerline = 1;
|
||||
} else if (!strcmp(argv[i], "-hin") || (!strcmp(argv[i], "--hide-input"))) { // hide input
|
||||
hideinput = 1;
|
||||
} else if (!strcmp(argv[i], "-spr") || (!strcmp(argv[i], "--show-prompt"))) { // show prompt
|
||||
hideprompt = 0;
|
||||
} else if (!strcmp(argv[i], "-spt") || (!strcmp(argv[i], "--show-pretext"))) { // show pretext
|
||||
hidepretext = 0;
|
||||
} else if (!strcmp(argv[i], "-spl") || (!strcmp(argv[i], "--show-powerline"))) { // show prompt
|
||||
hidepowerline = 0;
|
||||
} else if (!strcmp(argv[i], "-sin") || (!strcmp(argv[i], "--show-input"))) { // show input
|
||||
|
@ -702,6 +704,7 @@ void usage(int status) {
|
|||
"spmenu -sra, --show-right-arrow Show right arrow\n"
|
||||
"spmenu -sit, --show-item Show items\n"
|
||||
"spmenu -spr, --show-prompt Show prompt\n"
|
||||
"spmenu -spt, --show-pretext Show pretext\n"
|
||||
"spmenu -sin, --show-input Show input\n"
|
||||
"spmenu -spl, --show-powerline Show powerline\n"
|
||||
"spmenu -sc, --show-caret, --show-cursor Show caret\n"
|
||||
|
|
Loading…
Reference in a new issue