diff --git a/rc/core/doc.kak b/rc/core/doc.kak index f84192ac..a5d59fab 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -46,9 +46,7 @@ define-command -params 1 -hidden doc-render %{ define-command -params 1 \ -shell-candidates %{ - find "${kak_runtime}/doc/" -type f -name "*.asciidoc" | while read l; do - basename "${l%.*}" - done + find "${kak_runtime}/doc/" -type f -name "*.asciidoc" | sed 's,.*/,,; s/\.[^/]*$//' } \ doc -docstring %{doc []: 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} %{