Allow instant completion of doc pages

Closes #750
This commit is contained in:
Frank LENORMAND 2016-08-30 17:23:42 +03:00
parent b6cab458ed
commit 47d9f4a993

View File

@ -29,7 +29,7 @@ def -hidden -params 1..2 _doc-open %{
} }
def -params 1..2 \ def -params 1..2 \
-shell-completion %{ -shell-candidates %{
find "${kak_runtime}/../doc/kak/manpages/" -type f -iname "*$@*.gz" -printf '%f\n' | while read l; do find "${kak_runtime}/../doc/kak/manpages/" -type f -iname "*$@*.gz" -printf '%f\n' | while read l; do
printf %s\\n "${l%.*}" printf %s\\n "${l%.*}"
done done