commit 27928e47be9c63747ab2f016c376a02db2265d69
parent 79def643a380ee94a54cc071e9172a634789112e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 26 Nov 2021 11:01:33 +0100
docs: mention that --zero and 'set zero' hide also the help lines
Diffstat:
3 files changed, 28 insertions(+), 17 deletions(-)
diff --git a/doc/nano.1 b/doc/nano.1
@@ -358,10 +358,12 @@ The line plus column numbers and the character code are displayed only when
The state flags are displayed only when \fB\-\-stateflags\fR is used.
.TP
.BR \-0 ", " \-\-zero
-Hide the title bar (or minibar) and use all rows
-of the terminal for showing the text of the buffer. Only significant
-messages appear on the status bar, and disappear upon the next keystroke.
-This "hidden interface" mode can be toggled with \fBM-Z\fR.
+Hide all elements of the interface (title bar, status bar, and help lines)
+and use all rows of the terminal for showing the contents of the buffer.
+The status bar appears only where 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 \-! ", " \-\-magic
When neither the file's name nor its first line give a clue,
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -704,10 +704,12 @@ The state flags are displayed only when @code{--stateflags} is used.
@item -0
@itemx --zero
-Hide the title bar (or minibar) and use all rows
-of the terminal for showing the text of the buffer. Only significant
-messages appear on the status bar, and disappear upon the next keystroke.
-This "hidden interface" mode can be toggled with @kbd{M-Z}.
+Hide all elements of the interface (title bar, status bar, and help lines)
+and use all rows of the terminal for showing the contents of the buffer.
+The status bar appears only where there is a significant message,
+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 --magic
@@ -766,7 +768,10 @@ for more details). The following global toggles are available:
(@pxref{Syntax Highlighting}).
@item Hidden Interface
-@kbd{M-Z} toggles the @option{-0} (@option{--zero}) command-line option.
+@kbd{M-Z} toggles the @option{-0} (@option{--zero}) command-line option,
+but without the @option{-x} (@option{--nohelp}) part. That is: it toggles
+just the title bar plus status bar (or the combined minibar plus status bar),
+not the help lines. The latter are toggled with @kbd{M-X}.
@end table
@@ -1155,10 +1160,12 @@ Let an unmodified @kbd{Backspace} or @kbd{Delete} erase the marked region
(instead of a single character, and without affecting the cutbuffer).
@item set zero
-Hide the title bar (or minibar) and use all rows
-of the terminal for showing the text of the buffer. Only significant
-messages appear on the status bar, and disappear upon the next keystroke.
-This "hidden interface" mode can be toggled with @kbd{M-Z}.
+Hide all elements of the interface (title bar, status bar, and help lines)
+and use all rows of the terminal for showing the contents of the buffer.
+The status bar appears only where there is a significant message,
+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.
@end table
diff --git a/doc/nanorc.5 b/doc/nanorc.5
@@ -403,10 +403,12 @@ Let an unmodified Backspace or Delete erase the marked region
(instead of a single character, and without affecting the cutbuffer).
.TP
.B set zero
-Hide the title bar (or minibar) and use all rows
-of the terminal for showing the text of the buffer. Only significant
-messages appear on the status bar, and disappear upon the next keystroke.
-This "hidden interface" mode can be toggled with \fBM-Z\fR.
+Hide all elements of the interface (title bar, status bar, and help lines)
+and use all rows of the terminal for showing the contents of the buffer.
+The status bar appears only where 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.
.SH SYNTAX HIGHLIGHTING
Coloring the different syntactic elements of a file