commit 8b4bf2bb8ddec5929f66740b345c0cfd9c4a4235
parent 2a515058be6b7d185d47c8d454c13894216daadf
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 14 Aug 2022 16:14:21 +0200
docs: mention that string binds may contain function names between braces
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -1336,9 +1336,9 @@ Rebinds @code{key} to @code{function} in the context of @code{menu}
@item bind key "string" menu
Makes @code{key} produce @code{string} in the context of @code{menu}
(or in all menus where the key exists when @code{all} is used).
-The @code{string} can consist of text or commands or a mix of them.
-(To enter a command into the @code{string}, precede its keystroke
-with @kbd{M-V}.)
+Besides literal text, the @code{string} may contain function names
+between braces. These functions will be invoked when the key is typed.
+To include a literal opening brace, use @code{@{@{@}}.
@item unbind key menu
Unbinds @code{key} from @code{menu}
diff --git a/doc/nanorc.5 b/doc/nanorc.5
@@ -551,9 +551,9 @@ Rebinds the given \fIkey\fP to the given \fIfunction\fP in the given \fImenu\fP
.BI bind " key " """" string """" " menu"
Makes the given \fIkey\fR produce the given \fIstring\fR in the given
\fImenu\fR (or in all menus where the key exists when \fBall\fR is used).
-The \fIstring\fR can consist of text or commands or a mix of them.
-(To enter a command into the \fIstring\fR, precede its keystroke
-with \fBM\-V\fR.)
+Besides literal text, the \fIstring\fR may contain function names
+between braces. These functions will be invoked when the key is typed.
+To include a literal opening brace, use \fB{{}\fR.
.TP
.BI unbind " key menu"
Unbinds the given \fIkey\fP from the given \fImenu\fP (or from all