Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
0e010809
Commit
0e010809
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
binding: allow to rebind the word-completion function, and document it
parent
68a03145
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/man/nanorc.5
+4
-0
doc/man/nanorc.5
doc/texinfo/nano.texi
+4
-0
doc/texinfo/nano.texi
src/global.c
+4
-0
src/global.c
with
12 additions
and
0 deletions
+12
-0
doc/man/nanorc.5
View file @
0e010809
...
...
@@ -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
style specified in the active syntax.
.TP
.B complete
Completes the fragment before the cursor to a full word found elsewhere
in the current buffer.
.TP
.B left
Goes left one position (in the editor or browser).
.TP
...
...
This diff is collapsed.
Click to expand it.
doc/texinfo/nano.texi
View file @
0e010809
...
...
@@ -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
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
Goes left one position (in the editor or browser).
...
...
This diff is collapsed.
Click to expand it.
src/global.c
View file @
0e010809
...
...
@@ -1456,6 +1456,10 @@ sc *strtosc(const char *input)
else
if
(
!
strcasecmp
(
input
,
"comment"
))
s
->
scfunc
=
do_comment
;
#endif
#ifdef ENABLE_WORDCOMPLETION
else
if
(
!
strcasecmp
(
input
,
"complete"
))
s
->
scfunc
=
complete_a_word
;
#endif
#ifndef NANO_TINY
else
if
(
!
strcasecmp
(
input
,
"indent"
))
s
->
scfunc
=
do_indent_void
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help