Do not use find -printf in doc completion implementation

This commit is contained in:
Maxime Coste 2016-12-14 00:59:19 +00:00
parent 85a534fb8a
commit 066d6d1120

View File

@ -32,8 +32,8 @@ def -hidden -params 1..2 _doc-open %{
def -params 1..2 \
-shell-candidates %{
find "${kak_runtime}/../doc/kak/manpages/" -type f -iname "*.gz" -printf '%f\n' | while read l; do
printf %s\\n "${l%.*}"
find "${kak_runtime}/../doc/kak/manpages/" -type f -iname "*.gz" | while read l; do
basename "${l%.*}"
done
} \
doc -docstring %{doc <topic> [<keyword>]: open a buffer containing documentation about a given topic