diff --git a/docs/docs.md b/docs/docs.md index 2501a5f..3209151 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -283,6 +283,9 @@ in the config files. `-sin, --show-input` : Show input +`-spt, --show-pretext` +: Show pretext + `-spl, --show-powerline` : Show powerline diff --git a/spmenu.1 b/spmenu.1 index e75cf47..2137d2b 100644 --- a/spmenu.1 +++ b/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. diff --git a/spmenu_run.1 b/spmenu_run.1 index ad68152..2728753 100644 --- a/spmenu_run.1 +++ b/spmenu_run.1 @@ -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. diff --git a/spmenu_test.1 b/spmenu_test.1 index a3c1e32..8775627 100644 --- a/spmenu_test.1 +++ b/spmenu_test.1 @@ -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. diff --git a/src/libs/argv.c b/src/libs/argv.c index 5151cd1..bc7adba 100644 --- a/src/libs/argv.c +++ b/src/libs/argv.c @@ -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"