Describing bindable functions in the third person -- it somehow sounds better.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4852 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-05-09 21:02:14 +00:00
parent a6804b5f08
commit 77afd32e68
2 changed files with 86 additions and 81 deletions

View File

@ -8,6 +8,7 @@
when speller is disabled, and fix compilation with --disable-speller. when speller is disabled, and fix compilation with --disable-speller.
* src/global.c (shortcut_init, strtosc), doc/man/nanorc.5: Put softwrap * src/global.c (shortcut_init, strtosc), doc/man/nanorc.5: Put softwrap
back among the "Appearance" toggles. back among the "Appearance" toggles.
* doc/man/nanorc.5: Describe bindable functions in the third person.
2014-05-06 Benno Schulenberg <bensberg@justemail.net> 2014-05-06 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Let makeinfo figure out the node pointers. * doc/texinfo/nano.texi: Let makeinfo figure out the node pointers.

View File

@ -351,256 +351,257 @@ Valid \fIfunction\fP names to be bound include:
.TP 2 .TP 2
.B help .B help
Invoke the help viewer. Invokes the help viewer.
.TP .TP
.B cancel .B cancel
Cancel the current command. Cancels the current command.
.TP .TP
.B exit .B exit
Exit from the program (or from the help viewer or the file browser). Exits from the program (or from the help viewer or the file browser).
.TP .TP
.B writeout .B writeout
Write the current buffer to disk. Writes the current buffer to disk.
.TP .TP
.B insert .B insert
Insert a file into the current buffer (or into a new buffer when multibuffer Inserts a file into the current buffer (or into a new buffer when multibuffer
is enabled). is enabled).
.TP .TP
.B whereis .B whereis
Search for text in the current buffer. Searches for text in the current buffer.
.TP .TP
.B searchagain .B searchagain
Repeat the last search command. Repeats the last search command.
.TP .TP
.B replace .B replace
Interactively replace text within the current buffer. Interactively replaces text within the current buffer.
.TP .TP
.B cut .B cut
Cut the current line of text and store it. Cuts and stores the current line (or the marked region).
.TP .TP
.B copytext .B copytext
Copy the currently marked text without deleting it. Copies the current line (or the marked region) without deleting it.
.TP .TP
.B uncut .B uncut
Copy the currently stored text into the current buffer position. Copies the currently stored text into the current buffer at the
current cursor position.
.TP .TP
.B mark .B mark
Begin selecting text for cutting at the current position. Sets the mark at the current position, to start selecting text.
.TP .TP
.B cutrestoffile .B cutrestoffile
Cut all text from the cursor position till the end of the buffer. Cuts all text from the cursor position till the end of the buffer.
.TP .TP
.B curpos .B curpos
Show the current cursor position: the line, column, and character positions. Shows the current cursor position: the line, column, and character positions.
.TP .TP
.B wordcount .B wordcount
Count the number of words in the current buffer. Counts the number of words, lines and characters in the current buffer.
.TP .TP
.B speller .B speller
Invoke a spell checking program (or a linting program, if the current Invokes a spell-checking program (or a linting program, if the current
syntax highlighting defines one). syntax highlighting defines one).
.TP .TP
.B justify .B justify
Justify the current paragraph. Justifies the current paragraph.
.TP .TP
.B fulljustify .B fulljustify
Justify the entire current file. Justifies the entire current buffer.
.TP .TP
.B indent .B indent
Indent the currently marked text (shift to the right). Indents (shifts to the right) the currently marked text.
.TP .TP
.B unindent .B unindent
Un-indent the currently marked text (shift to the left). Unindents (shifts to the left) the currently marked text.
.TP .TP
.B left .B left
Go left one position (in the editor or browser). Goes left one position (in the editor or browser).
.TP .TP
.B right .B right
Go right one position (in the editor or browser). Goes right one position (in the editor or browser).
.TP .TP
.B up .B up
Go one line up (in the editor or browser). Goes one line up (in the editor or browser).
.TP .TP
.B down .B down
Go one line down (in the editor or browser). Goes one line down (in the editor or browser).
.TP .TP
.B scrollup .B scrollup
Scroll up one line of text from the current position. Scrolls up one line of text from the current position.
.TP .TP
.B scrolldown .B scrolldown
Scroll down one line of text from the current position. Scrolls down one line of text from the current position.
.TP .TP
.B nextword .B nextword
Move the cursor to the beginning of the next word. Moves the cursor to the beginning of the next word.
.TP .TP
.B prevword .B prevword
Move the cursor to the beginning of the previous word. Moves the cursor to the beginning of the previous word.
.TP .TP
.B home .B home
Move the cursor to the beginning of the current line. Moves the cursor to the beginning of the current line.
.TP .TP
.B end .B end
Move the cursor to the end of the current line. Moves the cursor to the end of the current line.
.TP .TP
.B beginpara .B beginpara
Move the cursor to the beginning of the current paragraph. Moves the cursor to the beginning of the current paragraph.
.TP .TP
.B endpara .B endpara
Move the cursor to the end of the current paragraph. Moves the cursor to the end of the current paragraph.
.TP .TP
.B prevpage .B prevpage
Go one screenful up. Goes up one screenful.
.TP .TP
.B nextpage .B nextpage
Go one screenful down. Goes down one screenful.
.TP .TP
.B firstline .B firstline
Go to the first line of the file. Goes to the first line of the file.
.TP .TP
.B lastline .B lastline
Go to the last line of the file. Goes to the last line of the file.
.TP .TP
.B gotoline .B gotoline
Move to a specific line (and column if specified). Goes to a specific line (and column if specified).
.TP .TP
.B findbracket .B findbracket
Move the cursor to the bracket (brace, parenthesis, etc.) that matches Moves the cursor to the bracket (brace, parenthesis, etc.) that matches
(pairs) with the one under the cursor. (pairs) with the one under the cursor.
.TP .TP
.B prevbuf .B prevbuf
Switch to editing/viewing the previous buffer when using multibuffer mode. Switches to editing/viewing the previous buffer when using multibuffer mode.
.TP .TP
.B nextbuf .B nextbuf
Switch to editing/viewing the next buffer when using multibuffer mode. Switches to editing/viewing the next buffer when using multibuffer mode.
.TP .TP
.B verbatim .B verbatim
Insert the next character verbatim into the file. Inserts the next character verbatim into the file.
.TP .TP
.B tab .B tab
Insert a tab at the current cursor location. Inserts a tab at the current cursor location.
.TP .TP
.B enter .B enter
Insert a new line below the current one. Inserts a new line below the current one.
.TP .TP
.B delete .B delete
Delete the character under the cursor. Deletes the character under the cursor.
.TP .TP
.B backspace .B backspace
Delete the character before the cursor. Deletes the character before the cursor.
.TP .TP
.B undo .B undo
Undo the last text action performed (add text, delete text, etc). Undoes the last performed text action (add text, delete text, etc).
.TP .TP
.B redo .B redo
Redo the last undone action (i.e., undo an undo). Redoes the last undone action (i.e., it undoes an undo).
.TP .TP
.B refresh .B refresh
Refresh the screen. Refreshes the screen.
.TP .TP
.B suspend .B suspend
Suspend the editor (if the suspend function is enabled, see the Suspends the editor (if the suspending function is enabled, see the
"suspendenable" entry below). "suspendenable" entry below).
.TP .TP
.B casesens .B casesens
Toggle case sensitivity in searching (search/replace menus only). Toggles case sensitivity in searching (search/replace menus only).
.TP .TP
.B regexp .B regexp
Toggle whether searching/replacing is based on literal strings or regular expressions. Toggles whether searching/replacing is based on literal strings or regular expressions.
.TP .TP
.B backwards .B backwards
Toggle whether searching/replacing goes forward or backward. Toggles whether searching/replacing goes forward or backward.
.TP .TP
.B prevhistory .B prevhistory
Show the previous history entry in the prompt menus (e.g. search). Shows the previous history entry in the prompt menus (e.g. search).
.TP .TP
.B nexthistory .B nexthistory
Show the next history entry in the prompt menus (e.g. search). Shows the next history entry in the prompt menus (e.g. search).
.TP .TP
.B dontreplace .B dontreplace
Switch back to searching instead of replacing. Switches back to searching instead of replacing.
.TP .TP
.B gototext .B gototext
Search for files matching a string in the file browser (reading or writing files). Searches for files matching a string in the file browser (reading or writing files).
.TP .TP
.B dosformat .B dosformat
When writing a file, switch to writing a DOS format (CR/LF). When writing a file, switches to writing a DOS format (CR/LF).
.TP .TP
.B macformat .B macformat
When writing a file, switch to writing a Mac format. When writing a file, switches to writing a Mac format.
.TP .TP
.B append .B append
When writing a file, append to the end instead of overwriting. When writing a file, appends to the end instead of overwriting.
.TP .TP
.B prepend .B prepend
When writing a file, 'prepend' (write at the beginning) instead of overwriting. When writing a file, 'prepends' (writes at the beginning) instead of overwriting.
.TP .TP
.B backup .B backup
When writing a file, create a backup of the current file. When writing a file, creates a backup of the current file.
.TP .TP
.B firstfile .B firstfile
Move to the first file when using the file browser (reading or writing files). Goes to the first file when using the file browser (reading or writing files).
.TP .TP
.B lastfile .B lastfile
Move to the last file when using the file browser (reading or writing files). Goes to the last file when using the file browser (reading or writing files).
.TP .TP
.B nohelp .B nohelp
Toggle showing/hiding the two-line list of key bindings at the bottom of the screen. Toggles the presence of the two-line list of key bindings at the bottom of the screen.
.TP .TP
.B constupdate .B constupdate
Toggle the constant display of the current line, column, and word positions. Toggles the constant display of the current line, column, and character positions.
.TP .TP
.B morespace .B morespace
Toggle showing/hiding the blank line which 'separates' the 'title' from the file text. Toggles the presence of the blank line which 'separates' the titlebar from the file text.
.TP .TP
.B smoothscroll .B smoothscroll
Toggle smooth scrolling when moving via the arrow keys. Toggles smooth scrolling (when moving around with the arrow keys).
.TP .TP
.B softwrap .B softwrap
Toggle the displaying of overlong lines on multiple screen lines. Toggles the displaying of overlong lines on multiple screen lines.
.TP .TP
.B whitespacedisplay .B whitespacedisplay
Toggle the showing of whitespace. Toggles the showing of whitespace.
.TP .TP
.B nosyntax .B nosyntax
Toggle syntax highlighting. Toggles syntax highlighting.
.TP .TP
.B smarthome .B smarthome
Toggle whether the smart home key function is enabled. Toggles the smartness of the Home key.
.TP .TP
.B autoindent .B autoindent
Toggle whether new lines will contain the same amount of whitespace as the line above. Toggles whether new lines will contain the same amount of whitespace as the preceding line.
.TP .TP
.B cuttoend .B cuttoend
Toggle whether cutting text will cut the whole line or just from the current cursor Toggles whether cutting text will cut the whole line or just from the current cursor
position to the end of the line. position to the end of the line.
.TP .TP
.B nowrap .B nowrap
Toggle whether long lines will be hard-wrapped to the next line. Toggles whether long lines will be hard-wrapped to the next line.
.TP .TP
.B tabstospaces .B tabstospaces
Toggle whether typed tabs will be converted to spaces. Toggles whether typed tabs will be converted to spaces.
.TP .TP
.B backupfile .B backupfile
Toggle whether a backup will be made of the file to be edited. Toggles whether a backup will be made of the file to be edited.
.TP .TP
.B multibuffer .B multibuffer
Toggle the use of multiple file buffers (if available). Toggles the use of multiple file buffers (if available).
.TP .TP
.B mouse .B mouse
Toggle mouse support. Toggles mouse support.
.TP .TP
.B noconvert .B noconvert
Toggle automatic conversion of files from DOS/Mac format. Toggles automatic conversion of files from DOS/Mac format.
.TP .TP
.B suspendenable .B suspendenable
Toggle whether the suspend sequence (normally ^Z) will suspend the editor window. Toggles whether the suspend sequence (normally ^Z) will suspend the editor window.
.TP .TP
Valid \fImenu\fP sections are: Valid \fImenu\fP sections are:
.TP 2 .TP 2
.B main .B main
The main editor window where text is entered. The main editor window where text is entered and edited.
.TP .TP
.B search .B search
The search menu (AKA whereis). The search menu (AKA whereis).
@ -629,6 +630,9 @@ The help-viewer menu.
.B spell .B spell
The interactive spell checker Yes/no menu. The interactive spell checker Yes/no menu.
.TP .TP
.B linter
The linter menu.
.TP
.B browser .B browser
The file browser for inserting or writing a file. The file browser for inserting or writing a file.
.TP .TP