Group related functions together, remove duplicate "up"/"down",
and add missing "prevpage"/"nextpage" in nanorc man page. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4818 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
301c4ef6b3
commit
618051cac7
|
@ -6,6 +6,8 @@
|
||||||
help lines show "Close" again when more than one buffer is open.
|
help lines show "Close" again when more than one buffer is open.
|
||||||
* src/global.c (strtosc), doc/man/nanorc.5: Allow the do_spell
|
* src/global.c (strtosc), doc/man/nanorc.5: Allow the do_spell
|
||||||
(and thus do_lint) function to be bound to other key combos.
|
(and thus do_lint) function to be bound to other key combos.
|
||||||
|
* src/global.c (strtosc), doc/man/nanorc.5: Group related functions
|
||||||
|
together, remove duplicate up/down, add missing prevpage/nextpage.
|
||||||
|
|
||||||
2014-04-24 Benno Schulenberg <bensberg@justemail.net>
|
2014-04-24 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* doc/faq.html: Update a few URLs, delete some obsolete ones, update
|
* doc/faq.html: Update a few URLs, delete some obsolete ones, update
|
||||||
|
|
102
doc/man/nanorc.5
102
doc/man/nanorc.5
|
@ -334,9 +334,6 @@ Exit from the program.
|
||||||
.B writeout
|
.B writeout
|
||||||
Write the current buffer to disk.
|
Write the current buffer to disk.
|
||||||
.TP
|
.TP
|
||||||
.B justify
|
|
||||||
Justify the current text.
|
|
||||||
.TP
|
|
||||||
.B insert
|
.B insert
|
||||||
Insert a file into the current buffer (or into a new buffer when multibuffer
|
Insert a file into the current buffer (or into a new buffer when multibuffer
|
||||||
is enabled).
|
is enabled).
|
||||||
|
@ -347,48 +344,36 @@ Search for text in the current buffer.
|
||||||
.B searchagain
|
.B searchagain
|
||||||
Repeat the last search command.
|
Repeat the last search command.
|
||||||
.TP
|
.TP
|
||||||
.B up
|
.B replace
|
||||||
Move up in the editor or browser.
|
Interactively replace text within the current buffer.
|
||||||
.TP
|
|
||||||
.B down
|
|
||||||
Move down in the editor or browser.
|
|
||||||
.TP
|
|
||||||
.B left
|
|
||||||
Move left in the editor or browser.
|
|
||||||
.TP
|
|
||||||
.B right
|
|
||||||
Move right in the editor or browser.
|
|
||||||
.TP
|
.TP
|
||||||
.B cut
|
.B cut
|
||||||
Cut the current line of text and store it.
|
Cut the current line of text and store it.
|
||||||
.TP
|
.TP
|
||||||
|
.B copytext
|
||||||
|
Copy the currently marked text without deleting it.
|
||||||
|
.TP
|
||||||
.B uncut
|
.B uncut
|
||||||
Copy the currently stored text into the current buffer position.
|
Copy the currently stored text into the current buffer position.
|
||||||
.TP
|
.TP
|
||||||
|
.B mark
|
||||||
|
Begin selecting text for cutting at the current position.
|
||||||
|
.TP
|
||||||
.B curpos
|
.B curpos
|
||||||
Show the current line, column, word positions in the file.
|
Show the current line, column, word positions in the file.
|
||||||
.TP
|
.TP
|
||||||
|
.B wordcount
|
||||||
|
Count the number of words in the current buffer.
|
||||||
|
.TP
|
||||||
.B speller
|
.B speller
|
||||||
Invoke a spell checking program (or a linting program, if the current
|
Invoke a spell checking program (or a linting program, if the current
|
||||||
syntax highlighting defines one).
|
syntax highlighting defines one).
|
||||||
.TP
|
.TP
|
||||||
.B firstline
|
.B justify
|
||||||
Move to the first line of the file.
|
Justify the current text.
|
||||||
.TP
|
.TP
|
||||||
.B lastline
|
.B fulljustify
|
||||||
Move to the last line of the file.
|
Justify the entire current file.
|
||||||
.TP
|
|
||||||
.B gotoline
|
|
||||||
Move to a specific line (and column if specified).
|
|
||||||
.TP
|
|
||||||
.B replace
|
|
||||||
Interactively replace text within the current buffer.
|
|
||||||
.TP
|
|
||||||
.B mark
|
|
||||||
Begin selecting text for cutting or pasting at the current position.
|
|
||||||
.TP
|
|
||||||
.B copytext
|
|
||||||
Copy the currently marked text without deleting it.
|
|
||||||
.TP
|
.TP
|
||||||
.B indent
|
.B indent
|
||||||
Indent the currently marked text (shift to the right).
|
Indent the currently marked text (shift to the right).
|
||||||
|
@ -396,6 +381,24 @@ Indent the currently marked text (shift to the right).
|
||||||
.B unindent
|
.B unindent
|
||||||
Un-indent the currently marked text (shift to the left).
|
Un-indent the currently marked text (shift to the left).
|
||||||
.TP
|
.TP
|
||||||
|
.B left
|
||||||
|
Go left one position (in the editor or browser).
|
||||||
|
.TP
|
||||||
|
.B right
|
||||||
|
Go right one position (in the editor or browser).
|
||||||
|
.TP
|
||||||
|
.B up
|
||||||
|
Go one line up (in the editor or browser).
|
||||||
|
.TP
|
||||||
|
.B down
|
||||||
|
Go one line down (in the editor or browser).
|
||||||
|
.TP
|
||||||
|
.B scrollup
|
||||||
|
Scroll up one line of text from the current position.
|
||||||
|
.TP
|
||||||
|
.B scrolldown
|
||||||
|
Scroll down one line of text from the current position.
|
||||||
|
.TP
|
||||||
.B nextword
|
.B nextword
|
||||||
Move the cursor to the beginning of the next word.
|
Move the cursor to the beginning of the next word.
|
||||||
.TP
|
.TP
|
||||||
|
@ -414,16 +417,25 @@ Move the cursor to the beginning of the current paragraph.
|
||||||
.B endpara
|
.B endpara
|
||||||
Move the cursor to the end of the current paragraph.
|
Move the cursor to the end of the current paragraph.
|
||||||
.TP
|
.TP
|
||||||
|
.B prevpage
|
||||||
|
Go one screenful up.
|
||||||
|
.TP
|
||||||
|
.B nextpage
|
||||||
|
Go one screenful down.
|
||||||
|
.TP
|
||||||
|
.B firstline
|
||||||
|
Go to the first line of the file.
|
||||||
|
.TP
|
||||||
|
.B lastline
|
||||||
|
Go to the last line of the file.
|
||||||
|
.TP
|
||||||
|
.B gotoline
|
||||||
|
Move to a specific line (and column if specified).
|
||||||
|
.TP
|
||||||
.B findbracket
|
.B findbracket
|
||||||
Move the cursor to the matching bracket (brace, parenthesis, etc.) of the one
|
Move the cursor to the matching bracket (brace, parenthesis, etc.) of the one
|
||||||
under the cursor.
|
under the cursor.
|
||||||
.TP
|
.TP
|
||||||
.B scrollup
|
|
||||||
Scroll up one line of text from the current position.
|
|
||||||
.TP
|
|
||||||
.B scrolldown
|
|
||||||
Scroll down one line of text from the current position.
|
|
||||||
.TP
|
|
||||||
.B prevbuf
|
.B prevbuf
|
||||||
Switch to editing/viewing the previous buffer when using multibuffer mode.
|
Switch to editing/viewing the previous buffer when using multibuffer mode.
|
||||||
.TP
|
.TP
|
||||||
|
@ -442,21 +454,15 @@ Insert a new line below the current one.
|
||||||
.B delete
|
.B delete
|
||||||
Delete the character under the cursor.
|
Delete the character under the cursor.
|
||||||
.TP
|
.TP
|
||||||
.B fulljustify
|
|
||||||
Justify the entire current file.
|
|
||||||
.TP
|
|
||||||
.B wordcount
|
|
||||||
Count the number of words in the current buffer.
|
|
||||||
.TP
|
|
||||||
.B refresh
|
|
||||||
Refresh the screen.
|
|
||||||
.TP
|
|
||||||
.B undo
|
.B undo
|
||||||
Undo the text action peformed (add text, delete text, etc).
|
Undo the text action peformed (add text, delete text, etc).
|
||||||
.TP
|
.TP
|
||||||
.B redo
|
.B redo
|
||||||
Redo the last undone action (i.e., undo an undo).
|
Redo the last undone action (i.e., undo an undo).
|
||||||
.TP
|
.TP
|
||||||
|
.B refresh
|
||||||
|
Refresh the screen.
|
||||||
|
.TP
|
||||||
.B suspend
|
.B suspend
|
||||||
Suspend the editor (if the suspend function is enabled, see the
|
Suspend the editor (if the suspend function is enabled, see the
|
||||||
"suspendenable" entry below).
|
"suspendenable" entry below).
|
||||||
|
@ -518,9 +524,6 @@ Toggle the showing of whitespace.
|
||||||
.B nosyntax
|
.B nosyntax
|
||||||
Toggle syntax highlighting.
|
Toggle syntax highlighting.
|
||||||
.TP
|
.TP
|
||||||
.B softwrap
|
|
||||||
Toggle the displaying of overlong lines on multiple screen lines.
|
|
||||||
.TP
|
|
||||||
.B smarthome
|
.B smarthome
|
||||||
Toggle whether the smart home key function is enabled.
|
Toggle whether the smart home key function is enabled.
|
||||||
.TP
|
.TP
|
||||||
|
@ -534,6 +537,9 @@ position to the end of the line.
|
||||||
.B nowrap
|
.B nowrap
|
||||||
Toggle whether long lines will be hard-wrapped to the next line.
|
Toggle whether long lines will be hard-wrapped to the next line.
|
||||||
.TP
|
.TP
|
||||||
|
.B softwrap
|
||||||
|
Toggle the displaying of overlong lines on multiple screen lines.
|
||||||
|
.TP
|
||||||
.B tabstospaces
|
.B tabstospaces
|
||||||
Toggle whether typed tabs will be converted to spaces.
|
Toggle whether typed tabs will be converted to spaces.
|
||||||
.TP
|
.TP
|
||||||
|
|
46
src/global.c
46
src/global.c
|
@ -1267,52 +1267,38 @@ sc *strtosc(char *input)
|
||||||
s->scfunc = do_insertfile_void;
|
s->scfunc = do_insertfile_void;
|
||||||
else if (!strcasecmp(input, "whereis"))
|
else if (!strcasecmp(input, "whereis"))
|
||||||
s->scfunc = do_search;
|
s->scfunc = do_search;
|
||||||
else if (!strcasecmp(input, "up"))
|
else if (!strcasecmp(input, "searchagain") ||
|
||||||
s->scfunc = do_up_void;
|
!strcasecmp(input, "research"))
|
||||||
else if (!strcasecmp(input, "down"))
|
s->scfunc = do_research;
|
||||||
s->scfunc = do_down_void;
|
else if (!strcasecmp(input, "replace"))
|
||||||
else if (!strcasecmp(input, "pageup") ||
|
s->scfunc = do_replace;
|
||||||
!strcasecmp(input, "prevpage"))
|
|
||||||
s->scfunc = do_page_up;
|
|
||||||
else if (!strcasecmp(input, "pagedown") ||
|
|
||||||
!strcasecmp(input, "nextpage"))
|
|
||||||
s->scfunc = do_page_down;
|
|
||||||
else if (!strcasecmp(input, "cut"))
|
else if (!strcasecmp(input, "cut"))
|
||||||
s->scfunc = do_cut_text_void;
|
s->scfunc = do_cut_text_void;
|
||||||
|
else if (!strcasecmp(input, "copytext"))
|
||||||
|
s->scfunc = do_copy_text;
|
||||||
else if (!strcasecmp(input, "uncut"))
|
else if (!strcasecmp(input, "uncut"))
|
||||||
s->scfunc = do_uncut_text;
|
s->scfunc = do_uncut_text;
|
||||||
|
else if (!strcasecmp(input, "mark"))
|
||||||
|
s->scfunc = do_mark;
|
||||||
else if (!strcasecmp(input, "tospell") ||
|
else if (!strcasecmp(input, "tospell") ||
|
||||||
!strcasecmp(input, "speller"))
|
!strcasecmp(input, "speller"))
|
||||||
s->scfunc = do_spell;
|
s->scfunc = do_spell;
|
||||||
else if (!strcasecmp(input, "curpos") ||
|
else if (!strcasecmp(input, "curpos") ||
|
||||||
!strcasecmp(input, "cursorpos"))
|
!strcasecmp(input, "cursorpos"))
|
||||||
s->scfunc = do_cursorpos_void;
|
s->scfunc = do_cursorpos_void;
|
||||||
else if (!strcasecmp(input, "firstline"))
|
|
||||||
s->scfunc = do_first_line;
|
|
||||||
else if (!strcasecmp(input, "lastline"))
|
|
||||||
s->scfunc = do_last_line;
|
|
||||||
else if (!strcasecmp(input, "gotoline"))
|
else if (!strcasecmp(input, "gotoline"))
|
||||||
s->scfunc = do_gotolinecolumn_void;
|
s->scfunc = do_gotolinecolumn_void;
|
||||||
else if (!strcasecmp(input, "replace"))
|
|
||||||
s->scfunc = do_replace;
|
|
||||||
#ifndef DISABLE_JUSTIFY
|
#ifndef DISABLE_JUSTIFY
|
||||||
else if (!strcasecmp(input, "justify"))
|
else if (!strcasecmp(input, "justify"))
|
||||||
s->scfunc = do_justify_void;
|
s->scfunc = do_justify_void;
|
||||||
|
else if (!strcasecmp(input, "fulljustify"))
|
||||||
|
s->scfunc = do_full_justify;
|
||||||
else if (!strcasecmp(input, "beginpara"))
|
else if (!strcasecmp(input, "beginpara"))
|
||||||
s->scfunc = do_para_begin_void;
|
s->scfunc = do_para_begin_void;
|
||||||
else if (!strcasecmp(input, "endpara"))
|
else if (!strcasecmp(input, "endpara"))
|
||||||
s->scfunc = do_para_end_void;
|
s->scfunc = do_para_end_void;
|
||||||
else if (!strcasecmp(input, "fulljustify"))
|
|
||||||
s->scfunc = do_full_justify;
|
|
||||||
#endif
|
#endif
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
else if (!strcasecmp(input, "mark"))
|
|
||||||
s->scfunc = do_mark;
|
|
||||||
else if (!strcasecmp(input, "searchagain") ||
|
|
||||||
!strcasecmp(input, "research"))
|
|
||||||
s->scfunc = do_research;
|
|
||||||
else if (!strcasecmp(input, "copytext"))
|
|
||||||
s->scfunc = do_copy_text;
|
|
||||||
else if (!strcasecmp(input, "indent"))
|
else if (!strcasecmp(input, "indent"))
|
||||||
s->scfunc = do_indent_void;
|
s->scfunc = do_indent_void;
|
||||||
else if (!strcasecmp(input, "unindent"))
|
else if (!strcasecmp(input, "unindent"))
|
||||||
|
@ -1427,6 +1413,16 @@ sc *strtosc(char *input)
|
||||||
s->scfunc = do_home;
|
s->scfunc = do_home;
|
||||||
else if (!strcasecmp(input, "end"))
|
else if (!strcasecmp(input, "end"))
|
||||||
s->scfunc = do_end;
|
s->scfunc = do_end;
|
||||||
|
else if (!strcasecmp(input, "pageup") ||
|
||||||
|
!strcasecmp(input, "prevpage"))
|
||||||
|
s->scfunc = do_page_up;
|
||||||
|
else if (!strcasecmp(input, "pagedown") ||
|
||||||
|
!strcasecmp(input, "nextpage"))
|
||||||
|
s->scfunc = do_page_down;
|
||||||
|
else if (!strcasecmp(input, "firstline"))
|
||||||
|
s->scfunc = do_first_line;
|
||||||
|
else if (!strcasecmp(input, "lastline"))
|
||||||
|
s->scfunc = do_last_line;
|
||||||
#ifndef DISABLE_MULTIBUFFER
|
#ifndef DISABLE_MULTIBUFFER
|
||||||
else if (!strcasecmp(input, "prevbuf"))
|
else if (!strcasecmp(input, "prevbuf"))
|
||||||
s->scfunc = switch_to_prev_buffer_void;
|
s->scfunc = switch_to_prev_buffer_void;
|
||||||
|
|
Loading…
Reference in New Issue