docs: mention how to get the old behavior of ^F, ^B, M-F, and M-B back

This commit is contained in:
Benno Schulenberg 2023-11-20 16:31:04 +01:00
parent a04d2a433c
commit 96df9e0a20
3 changed files with 42 additions and 0 deletions

View File

@ -30,6 +30,24 @@ nano \- Nano's ANOther text editor, inspired by Pico
.sp .sp
.BR nano " [" \fIoptions "] [[" + [ crCR ]{ / | ? } \fIstring "] " \fIfile ]... .BR nano " [" \fIoptions "] [[" + [ crCR ]{ / | ? } \fIstring "] " \fIfile ]...
.SH NOTICE
Since version 8.0, to be newcomer friendly, \fB^F\fR starts a forward search,
\fB^B\fR starts a backward search, \fBM\-F\fR searches the next occurrence
forward, and \fBM\-B\fR searches the next occurrence backward. If you want
those keystrokes to do what they did before version 8.0, add the following
lines at the end of your \fInanorc\fR file:
.sp
.RS 4
.B bind ^F forward main
.br
.B bind ^B back main
.br
.B bind M\-F formatter main
.br
.B bind M\-B linter main
.RE
.sp
.SH DESCRIPTION .SH DESCRIPTION
\fBnano\fP is a small and friendly text editor. It copies the look and feel \fBnano\fP is a small and friendly text editor. It copies the look and feel
of Pico, but is free software, and implements several features that Pico of Pico, but is free software, and implements several features that Pico

View File

@ -32,6 +32,24 @@ or from \fI~/.config/nano/nanorc\fR, whichever is encountered first.
If \fB\-\-rcfile\fR is given, \fBnano\fR will read just the specified If \fB\-\-rcfile\fR is given, \fBnano\fR will read just the specified
settings file. settings file.
.SH NOTICE
Since version 8.0, to be newcomer friendly, \fB^F\fR starts a forward search,
\fB^B\fR starts a backward search, \fBM\-F\fR searches the next occurrence
forward, and \fBM\-B\fR searches the next occurrence backward. If you want
those keystrokes to do what they did before version 8.0, add the following
lines at the end of your \fInanorc\fR file:
.sp
.RS 4
.B bind ^F forward main
.br
.B bind ^B back main
.br
.B bind M\-F formatter main
.br
.B bind M\-B linter main
.RE
.sp
.SH OPTIONS .SH OPTIONS
The configuration file accepts a series of \fBset\fP and \fBunset\fP The configuration file accepts a series of \fBset\fP and \fBunset\fP
commands, which can be used to configure nano on startup without using commands, which can be used to configure nano on startup without using

View File

@ -8,6 +8,12 @@
## Inside string parameters, quotes should not be escaped -- the last ## Inside string parameters, quotes should not be escaped -- the last
## double quote on the line will be seen as the closing quote. ## double quote on the line will be seen as the closing quote.
## If you want ^F, ^B, M-F and M-B to do what they did before version 8.0:
# bind ^F forward main
# bind ^B back main
# bind M-F formatter main
# bind M-B linter main
## Make 'nextword' (Ctrl+Right) and 'chopwordright' (Ctrl+Delete) ## Make 'nextword' (Ctrl+Right) and 'chopwordright' (Ctrl+Delete)
## stop at word ends instead of at beginnings. ## stop at word ends instead of at beginnings.
# set afterends # set afterends