commit d35650b034dc76cf7ecb97d7bc544dffff6a9dd8
parent 580eaf29d60734133c11f4ddb4b6aa06cdf33fdc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 23 Jan 2024 10:52:39 +0100
docs: document the new --modernbindings option
Diffstat:
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/doc/nano.1 b/doc/nano.1
@@ -385,6 +385,18 @@ The status bar appears only when there is a significant message,
and disappears after 1.5 seconds or upon the next keystroke.
With \fBM\-Z\fR the title bar plus status bar can be toggled.
With \fBM\-X\fR the help lines.
+.TP
+.BR \-/ ", " \-\-modernbindings
+Use key bindings similar to the ones that most modern programs use:
+\fB^X\fR cuts, \fB^C\fR copies, \fB^V\fR pastes,
+\fB^Z\fR undoes, \fB^Y\fR redoes,
+\fB^F\fR searches forward, \fB^G\fR searches next,
+\fB^S\fR saves, \fB^O\fR opens a file, \fB^Q\fR quits,
+and (when the terminal permits) \fB^H\fR shows help.
+Furthermore, \fB^A\fR sets the mark,
+\fB^R\fR makes replacements, \fB^D\fR searches previous,
+\fB^P\fR shows the position, \fB^T\fR goes to a line,
+\fB^W\fR writes out a file, and \fB^E\fR executes a command.
.SH TOGGLES
Several of the above options can be switched on and off also while
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -738,6 +738,19 @@ and disappears after 1.5 seconds or upon the next keystroke.
With @kbd{M-Z} the title bar plus status bar can be toggled.
With @kbd{M-X} the help lines.
+@item -/
+@itemx --modernbindings
+Use key bindings similar to the ones that most modern programs use:
+@kbd{^X} cuts, @kbd{^C} copies, @kbd{^V} pastes,
+@kbd{^Z} undoes, @kbd{^Y} redoes,
+@kbd{^F} searches forward, @kbd{^G} searches next,
+@kbd{^S} saves, @kbd{^O} opens a file, @kbd{^Q} quits,
+and (when the terminal permits) @kbd{^H} shows help.
+Furthermore, @kbd{^A} sets the mark,
+@kbd{^R} makes replacements, @kbd{^D} searches previous,
+@kbd{^P} shows the position, @kbd{^T} goes to a line,
+@kbd{^W} writes out a file, and @kbd{^E} executes a command.
+
@end table
@sp 1