Add cmd-menu-discard command (#2146)
* [WIP] Add `cmd-menu-discard` command * Add `compmenu` to $lf_mode * Add `cmd-menu-discard` command * Update documentation
This commit is contained in:
1 parent
9e5f6af3b7
commit
5aeb9a490b
6 files changed
+40
-10
No files matched your search
@@ -110,6 +110,7 @@ The following Command-line mode commands are provided by lf:
|
||||
cmd-menu-complete
|
||||
cmd-menu-complete-back
|
||||
cmd-menu-accept
|
||||
cmd-menu-discard
|
||||
cmd-enter (default '<c-j>' and '<enter>')
|
||||
cmd-interrupt (default '<c-c>')
|
||||
cmd-history-next (default '<c-n>' and '<down>')
|
||||
@@ -680,6 +681,11 @@ cmd-menu-accept
|
||||
Accept the currently selected match in menu completion and close the
|
||||
menu.
|
||||
|
||||
cmd-menu-discard
|
||||
|
||||
Discard the currently selected match in menu completion and close the
|
||||
menu.
|
||||
|
||||
cmd-enter (default <c-j> and <enter>)
|
||||
|
||||
Execute the current line.
|
||||
@@ -1340,8 +1346,8 @@ lf_mode
|
||||
|
||||
Current mode that lf is operating in. This is useful for customizing
|
||||
keybindings depending on what the current mode is. Possible values are
|
||||
delete, rename, filter, find, mark, search, command, shell, pipe (when
|
||||
running a shell-pipe command), normal, visual and unknown.
|
||||
compmenu, delete, rename, filter, find, mark, search, command, shell,
|
||||
pipe (when running a shell-pipe command), normal, visual and unknown.
|
||||
|
||||
SPECIAL COMMANDS
|
||||
|
||||
|
||||
Reference in new issue
Block a user