summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-03-24 19:20:29 +1100
committerMaxime Coste <mawww@kakoune.org>2019-03-24 19:28:46 +1100
commitb531bab1cef58fcebc6c786bd63d6217a135204d (patch)
tree7c68e57fd6bdeaf487a119147befb7ac40daf2db /doc
parent045efdc49ed39f90d4a0be56b3a9e4896533e7e2 (diff)
Add support for -shell-script-* completion in :prompt
Fixes #2754
Diffstat (limited to 'doc')
-rw-r--r--doc/pages/commands.asciidoc9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/pages/commands.asciidoc b/doc/pages/commands.asciidoc
index d4eda26a..8a215e3d 100644
--- a/doc/pages/commands.asciidoc
+++ b/doc/pages/commands.asciidoc
@@ -247,6 +247,15 @@ but not really useful in that context.
will have this command executed whenever the prompt content changes
or the prompt is aborted, respectively.
+ Completion support can be controlled with the same switches provided
+ by the *define-command* command, see
+ <<declaring-new-commands,Declaring new commands>>.
+
+ For *-shell-script-completions* and *-shell-script-candidates*
+ completions, token_to_complete will always be 1, and the full
+ prompt content will be passed as a single token. In other words,
+ word splitting does not take place.
+
*on-key* <command>::
wait for next key from user, then execute <command>, the key is
available through the `key` value, accessible through `$kak_key`