tweaks: slightly reword some fragments in the manual's rebinding section

master
Benno Schulenberg 2019-10-07 13:01:18 +02:00
parent 7338b45d36
commit 07c1e72216
2 changed files with 21 additions and 21 deletions

View File

@ -1134,7 +1134,7 @@ nanorc file:
@item bind key function menu @item bind key function menu
Rebinds @code{key} to @code{function} in the context of @code{menu} Rebinds @code{key} to @code{function} in the context of @code{menu}
(or in all menus where the function exists by using @code{all}). (or in all menus where the function exists when @code{all} is used).
@item bind key "string" menu @item bind key "string" menu
Makes @code{key} produce @code{string} in the context of @code{menu} Makes @code{key} produce @code{string} in the context of @code{menu}
@ -1145,7 +1145,7 @@ with @kbd{M-V}.)
@item unbind key menu @item unbind key menu
Unbinds @code{key} from @code{menu} Unbinds @code{key} from @code{menu}
(or from all menus where it exists by using @code{all}). (or from all menus where the key exists when @code{all} is used).
@end table @end table
@ -1154,20 +1154,21 @@ The format of @code{key} should be one of:
@itemize @w{} @itemize @w{}
@item @item
@code{^}@ followed by a Latin letter, by one of several ASCII characters @code{^@var{X}} ------ where @var{X} is a Latin letter, or one of several
(@@, ], \, ^, or _), or by the word "Space". ASCII characters (@@, ], \, ^, _), or the word "Space".
Example: @code{^C}. Example: @code{^C}.
@item @item
@code{M-}@ followed by any ASCII character except [, or by the word "Space". @code{M-@var{X}} ------ where @var{X} is any ASCII character except [,
or the word "Space".
Example: @code{M-C}. Example: @code{M-C}.
@item @item
@code{F}@ followed by a numeric value from 1 to 16. @code{F@var{n}} ------ where @var{n} is a numeric value from 1 to 16.
Example: @code{F10}. Example: @code{F10}.
@item @item
the word "Ins" or the word "Del". @code{Ins} or @code{Del}.
@end itemize @end itemize
@sp 1 @sp 1

View File

@ -465,9 +465,8 @@ Key bindings can be changed via the following three commands:
.RS 3 .RS 3
.TP .TP
.BI bind " key function menu" .BI bind " key function menu"
Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the Rebinds the given \fIkey\fP to the given \fIfunction\fP in the given \fImenu\fP
context of menu \fImenu\fP (or in all menus where the function exists (or in all menus where the function exists when \fBall\fP is used).
by using \fBall\fP).
.TP .TP
.BI bind " key " """" string """" " menu" .BI bind " key " """" string """" " menu"
Makes the given \fIkey\fR produce the given \fIstring\fR in the given Makes the given \fIkey\fR produce the given \fIstring\fR in the given
@ -478,28 +477,28 @@ with \fBM\-V\fR.)
.TP .TP
.BI unbind " key menu" .BI unbind " key menu"
Unbinds the key \fIkey\fP from the menu named \fImenu\fP (or from all Unbinds the given \fIkey\fP from the given \fImenu\fP (or from all
menus where it exists by using \fBall\fP). menus where the key exists when \fBall\fP is used).
.RE .RE
.TP .TP
The format of \fIkey\fP should be one of: The format of \fIkey\fP should be one of:
.RS 3 .RS 3
.TP 3 .TP 5
.B ^ .BI ^ X
followed by a Latin letter, by one of several ASCII characters where \fIX\fR is a Latin letter, or one of several ASCII characters
(@, ], \\, ^, or _), or by the word "Space". (@, ], \\, ^, _), or the word "Space".
Example: ^C. Example: ^C.
.TP .TP
.B M\- .BI M\- X
followed by any ASCII character except [, or by the word "Space". where \fIX\fR is any ASCII character except [, or the word "Space".
Example: M\-C. Example: M\-C.
.TP .TP
.B F .BI F N
followed by a numeric value from 1 to 16. where \fIN\fR is a numeric value from 1 to 16.
Example: F10. Example: F10.
.TP .TP
the word "Ins" or the word "Del". .BR Ins " or " Del .
.RE .RE
.TP .TP