mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
binding: allow to rebind the word-completion function, and document it
This commit is contained in:
parent
68a0314500
commit
0e01080983
@ -489,6 +489,10 @@ Unindents (shifts to the left) the currently marked text.
|
|||||||
Comments or uncomments the current line or marked lines, using the comment
|
Comments or uncomments the current line or marked lines, using the comment
|
||||||
style specified in the active syntax.
|
style specified in the active syntax.
|
||||||
.TP
|
.TP
|
||||||
|
.B complete
|
||||||
|
Completes the fragment before the cursor to a full word found elsewhere
|
||||||
|
in the current buffer.
|
||||||
|
.TP
|
||||||
.B left
|
.B left
|
||||||
Goes left one position (in the editor or browser).
|
Goes left one position (in the editor or browser).
|
||||||
.TP
|
.TP
|
||||||
|
@ -1091,6 +1091,10 @@ Unindents (shifts to the left) the currently marked text.
|
|||||||
Comments or uncomments the current line or marked lines, using the comment
|
Comments or uncomments the current line or marked lines, using the comment
|
||||||
style specified in the active syntax.
|
style specified in the active syntax.
|
||||||
|
|
||||||
|
@item complete
|
||||||
|
Completes the fragment before the cursor to a full word found elsewhere
|
||||||
|
in the current buffer.
|
||||||
|
|
||||||
@item left
|
@item left
|
||||||
Goes left one position (in the editor or browser).
|
Goes left one position (in the editor or browser).
|
||||||
|
|
||||||
|
@ -1456,6 +1456,10 @@ sc *strtosc(const char *input)
|
|||||||
else if (!strcasecmp(input, "comment"))
|
else if (!strcasecmp(input, "comment"))
|
||||||
s->scfunc = do_comment;
|
s->scfunc = do_comment;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_WORDCOMPLETION
|
||||||
|
else if (!strcasecmp(input, "complete"))
|
||||||
|
s->scfunc = complete_a_word;
|
||||||
|
#endif
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
else if (!strcasecmp(input, "indent"))
|
else if (!strcasecmp(input, "indent"))
|
||||||
s->scfunc = do_indent_void;
|
s->scfunc = do_indent_void;
|
||||||
|
Loading…
Reference in New Issue
Block a user