From 19cda837ff70a9bf58946cbbd26027a10d4d77ec Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 6 Nov 2017 20:47:12 +0800 Subject: [PATCH] doc.kak: Simplify completion script --- rc/core/doc.kak | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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} %{