docs: say that 'cutwordright' is now bound to <Ctrl+Delete> by default
Also, suggest to rebind ^H to 'cutwordleft' so that <Ctrl+Backspace> will delete the word to the left of the cursor (on some terminals).master
parent
a67f6c6031
commit
d04c8f88f1
|
@ -1148,9 +1148,13 @@ current cursor position.
|
||||||
|
|
||||||
@item cutwordleft
|
@item cutwordleft
|
||||||
Cuts from the cursor position to the beginning of the preceding word.
|
Cuts from the cursor position to the beginning of the preceding word.
|
||||||
|
(This function is not bound by default. If your terminal produces
|
||||||
|
@code{^H} for <Ctrl+Backspace>, you can make <Ctrl+Backspace> delete
|
||||||
|
the word to the left of the cursor by rebinding ^H to this function.)
|
||||||
|
|
||||||
@item cutwordright
|
@item cutwordright
|
||||||
Cuts from the cursor position to the beginning of the next word.
|
Cuts from the cursor position to the beginning of the next word.
|
||||||
|
(This function is bound by default to <Ctrl+Delete>.)
|
||||||
|
|
||||||
@item cutrestoffile
|
@item cutrestoffile
|
||||||
Cuts 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.
|
||||||
|
|
|
@ -498,9 +498,13 @@ current cursor position.
|
||||||
.TP
|
.TP
|
||||||
.B cutwordleft
|
.B cutwordleft
|
||||||
Cuts from the cursor position to the beginning of the preceding word.
|
Cuts from the cursor position to the beginning of the preceding word.
|
||||||
|
(This function is not bound by default. If your terminal produces
|
||||||
|
\fB^H\fR for <Ctrl+Backspace>, you can make <Ctrl+Backspace> delete
|
||||||
|
the word to the left of the cursor by rebinding ^H to this function.)
|
||||||
.TP
|
.TP
|
||||||
.B cutwordright
|
.B cutwordright
|
||||||
Cuts from the cursor position to the beginning of the next word.
|
Cuts from the cursor position to the beginning of the next word.
|
||||||
|
(This function is bound by default to <Ctrl+Delete>.)
|
||||||
.TP
|
.TP
|
||||||
.B cutrestoffile
|
.B cutrestoffile
|
||||||
Cuts 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.
|
||||||
|
|
|
@ -263,10 +263,14 @@
|
||||||
## Key bindings.
|
## Key bindings.
|
||||||
## See nanorc(5) (section REBINDING KEYS) for more details on this.
|
## See nanorc(5) (section REBINDING KEYS) for more details on this.
|
||||||
##
|
##
|
||||||
## The following two functions are not bound to any key by default.
|
## The <Ctrl+Delete> keystroke deletes the word to the right of the cursor.
|
||||||
## You may wish to choose other keys than the ones suggested here.
|
## On some terminals the <Ctrl+Backspace> keystroke produces ^H, which is
|
||||||
# bind M-B cutwordleft main
|
## the ASCII character for backspace, so it is bound by default to the
|
||||||
# bind M-N cutwordright main
|
## backspace function. The <Backspace> key itself produces a different
|
||||||
|
## keycode, which is hard-bound to the backspace function. So, if you
|
||||||
|
## normally use <Backspace> for backspacing and not ^H, you can make
|
||||||
|
## <Ctrl+Backspace> delete the word to the left of the cursor with:
|
||||||
|
# bind ^H cutwordleft main
|
||||||
|
|
||||||
## Set this if your Backspace key sends Del most of the time.
|
## Set this if your Backspace key sends Del most of the time.
|
||||||
# bind Del backspace all
|
# bind Del backspace all
|
||||||
|
|
Loading…
Reference in New Issue