mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 21:01:24 +03:00
bindings: rename two bindable functions: copytext to copy, uncut to paste
To match the common names used for these functions, for consistency, and because 'uncut' sounds too much like "undo the cut".
This commit is contained in:
parent
c2593c1c5a
commit
eb84205426
@ -1140,12 +1140,14 @@ Interactively replaces text within the current buffer.
|
|||||||
@item cut
|
@item cut
|
||||||
Cuts and stores the current line (or the marked region).
|
Cuts and stores the current line (or the marked region).
|
||||||
|
|
||||||
@item copytext
|
@item copy
|
||||||
Copies the current line (or the marked region) without deleting it.
|
Copies the current line (or the marked region) without deleting it.
|
||||||
|
(The old form 'copytext' is deprecated.)
|
||||||
|
|
||||||
@item uncut
|
@item paste
|
||||||
Copies the currently stored text into the current buffer at the
|
Pastes the currently stored text into the current buffer at the
|
||||||
current cursor position.
|
current cursor position.
|
||||||
|
(The old form 'uncut' is deprecated.)
|
||||||
|
|
||||||
@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.
|
||||||
|
@ -487,12 +487,14 @@ Interactively replaces text within the current buffer.
|
|||||||
.B cut
|
.B cut
|
||||||
Cuts and stores the current line (or the marked region).
|
Cuts and stores the current line (or the marked region).
|
||||||
.TP
|
.TP
|
||||||
.B copytext
|
.B copy
|
||||||
Copies the current line (or the marked region) without deleting it.
|
Copies the current line (or the marked region) without deleting it.
|
||||||
|
(The old form 'copytext' is deprecated.)
|
||||||
.TP
|
.TP
|
||||||
.B uncut
|
.B paste
|
||||||
Copies the currently stored text into the current buffer at the
|
Pastes the currently stored text into the current buffer at the
|
||||||
current cursor position.
|
current cursor position.
|
||||||
|
(The old form 'uncut' is deprecated.)
|
||||||
.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.
|
||||||
|
@ -1498,12 +1498,14 @@ sc *strtosc(const char *input)
|
|||||||
s->func = do_replace;
|
s->func = do_replace;
|
||||||
else if (!strcasecmp(input, "cut"))
|
else if (!strcasecmp(input, "cut"))
|
||||||
s->func = do_cut_text_void;
|
s->func = do_cut_text_void;
|
||||||
else if (!strcasecmp(input, "uncut"))
|
else if (!strcasecmp(input, "paste") ||
|
||||||
|
!strcasecmp(input, "uncut")) /* Deprecated. Remove end of 2018. */
|
||||||
s->func = do_uncut_text;
|
s->func = do_uncut_text;
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
else if (!strcasecmp(input, "cutrestoffile"))
|
else if (!strcasecmp(input, "cutrestoffile"))
|
||||||
s->func = do_cut_till_eof;
|
s->func = do_cut_till_eof;
|
||||||
else if (!strcasecmp(input, "copytext"))
|
else if (!strcasecmp(input, "copy") ||
|
||||||
|
!strcasecmp(input, "copytext")) /* Deprecated. Remove end of 2018. */
|
||||||
s->func = do_copy_text;
|
s->func = do_copy_text;
|
||||||
else if (!strcasecmp(input, "mark"))
|
else if (!strcasecmp(input, "mark"))
|
||||||
s->func = do_mark;
|
s->func = do_mark;
|
||||||
|
Loading…
Reference in New Issue
Block a user