mirror of git://git.sv.gnu.org/nano.git
docs: explain the behavior of the new function `cycle`
Also colorize {cycle} when found in a nanorc file.
This commit is contained in:
parent
d1c723bc14
commit
34dda64610
|
@ -1643,7 +1643,11 @@ while keeping the cursor in the same text position, if possible.
|
|||
(This function is bound by default to @kbd{Alt+Down}.)
|
||||
|
||||
@item center
|
||||
Scrolls the line with the cursor to the middle of the screen.
|
||||
Scrolls the line with the cursor to the middle of the viewport.
|
||||
|
||||
@item cycle
|
||||
Scrolls the line with the cursor first to the middle of the viewport,
|
||||
then to the top, then to the bottom.
|
||||
|
||||
@item prevword
|
||||
Moves the cursor to the beginning of the previous word.
|
||||
|
|
|
@ -794,7 +794,11 @@ while keeping the cursor in the same text position, if possible.
|
|||
(This function is bound by default to <Alt+Down>.)
|
||||
.TP
|
||||
.B center
|
||||
Scrolls the line with the cursor to the middle of the screen.
|
||||
Scrolls the line with the cursor to the middle of the viewport.
|
||||
.TP
|
||||
.B cycle
|
||||
Scrolls the line with the cursor first to the middle of the viewport,
|
||||
then to the top, then to the bottom.
|
||||
.TP
|
||||
.B prevword
|
||||
Moves the cursor to the beginning of the previous word.
|
||||
|
|
|
@ -29,7 +29,7 @@ color brightmagenta "[[:blank:]](start=)?".+""
|
|||
color crimson "\{(help|cancel|exit|savefile|writeout|discardbuffer|insert|where(is|was)|find(previous|next|bracket)|replace)\}"
|
||||
color crimson "\{(cut|copy|paste|zap|chopword(left|right)|cutrestoffile|execute|mark|speller|linter|formatter|(full)?justify)\}"
|
||||
color crimson "\{(location|gotoline|(begin|end)para|comment|complete|(un)?indent|wordcount|(record|run)macro|anchor|undo|redo)\}"
|
||||
color crimson "\{(left|right|up|down|home|end|(scroll|page)(up|down)|(top|bottom)row|center|(prev|next)(word|block|anchor|buf))\}"
|
||||
color crimson "\{(left|right|up|down|home|end|(scroll|page)(up|down)|(top|bottom)row|center|cycle|(prev|next)(word|block|anchor|buf))\}"
|
||||
color crimson "\{(tab|enter|delete|backspace|verbatim|refresh|suspend|casesens|regexp|backwards|older|newer|(dos|mac)format)\}"
|
||||
color crimson "\{(append|prepend|backup|flip(goto|replace|execute|pipe|convert|newbuffer)|browser|gotodir|(first|last)(file|line))\}"
|
||||
color crimson "\{(nohelp|constantshow|softwrap|linenumbers|whitespacedisplay|nosyntax|zero)\}"
|
||||
|
|
Loading…
Reference in New Issue