From b0cb9268d802ef22f1dd646274a6ee1213570a7a Mon Sep 17 00:00:00 2001 From: ferreum Date: Sat, 6 Aug 2022 14:53:26 +0200 Subject: [PATCH] docs: update lifted restrictions on cmap (#886) --- doc.go | 3 ++- docstring.go | 5 +++-- lf.1 | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/doc.go b/doc.go index 58bb8c38..86e0c421 100644 --- a/doc.go +++ b/doc.go @@ -921,9 +921,10 @@ Command 'map' is used to bind a key to a command which can be builtin command, c map i $less $f # shell command map U !du -csh * # waiting shell command -Command 'cmap' is used to bind a key to a command line command which can only be one of the builtin commands: +Command 'cmap' is used to bind a key on the command line to a command line command or any other command: cmap cmd-escape + cmap set incsearch! You can delete an existing binding by leaving the expression empty: diff --git a/docstring.go b/docstring.go index 0fee742a..c0e933f8 100644 --- a/docstring.go +++ b/docstring.go @@ -995,10 +995,11 @@ command, custom command, or shell command: map i $less $f # shell command map U !du -csh * # waiting shell command -Command 'cmap' is used to bind a key to a command line command which can -only be one of the builtin commands: +Command 'cmap' is used to bind a key on the command line to a command line +command or any other command: cmap cmd-escape + cmap set incsearch! You can delete an existing binding by leaving the expression empty: diff --git a/lf.1 b/lf.1 index b31cd4f2..77c58d18 100644 --- a/lf.1 +++ b/lf.1 @@ -1128,10 +1128,11 @@ Command 'map' is used to bind a key to a command which can be builtin command, c map U !du -csh * # waiting shell command .EE .PP -Command 'cmap' is used to bind a key to a command line command which can only be one of the builtin commands: +Command 'cmap' is used to bind a key on the command line to a command line command or any other command: .PP .EX cmap cmd-escape + cmap set incsearch! .EE .PP You can delete an existing binding by leaving the expression empty: