summaryrefslogtreecommitdiff
path: root/rc/tools
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2024-03-12 20:42:55 +0100
committerMaxime Coste <mawww@kakoune.org>2024-03-15 21:54:16 +1100
commit4d8de48ec33aa9ca097d33bf84f8d7cdffeecaee (patch)
treec76194071a40e5ea7ac453d7e483e54777c52677 /rc/tools
parentcde5f5a25838b2c9a2bf198b819a58d723b434a3 (diff)
rc tools doc: use menu behavior for completion again
Commit e43c7d6ab (Use complete-command for the :doc command, 2022-10-19) forgot to carry over the "-menu" flag, which means that :doc completions are no longer auto-selected, even though they are the only valid inputs. Fix that. Closes #4790
Diffstat (limited to 'rc/tools')
-rw-r--r--rc/tools/doc.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/tools/doc.kak b/rc/tools/doc.kak
index 5ce9a353..4b6afe32 100644
--- a/rc/tools/doc.kak
+++ b/rc/tools/doc.kak
@@ -134,7 +134,7 @@ define-command -params 1 -hidden doc-render %{
map buffer normal <ret> :doc-follow-link<ret>
}
-define-command doc -params 0..2 -menu -docstring %{
+define-command doc -params 0..2 -docstring %{
doc <topic> [<keyword>]: open a buffer containing documentation about a given topic
An optional keyword argument can be passed to the function, which will be automatically selected in the documentation
@@ -165,7 +165,7 @@ define-command doc -params 0..2 -menu -docstring %{
}
}
-complete-command doc shell-script-candidates %{
+complete-command -menu doc shell-script-candidates %{
case "$kak_token_to_complete" in
0)
find -L \