diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-11-06 20:47:12 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-11-06 20:47:12 +0800 |
| commit | 19cda837ff70a9bf58946cbbd26027a10d4d77ec (patch) | |
| tree | 416dd8539d87f6063a8e3f7b7afc8a43bb490393 | |
| parent | 01b52df53da03df58be524982998703d87062c0a (diff) | |
doc.kak: Simplify completion script
| -rw-r--r-- | rc/core/doc.kak | 4 |
1 files changed, 1 insertions, 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 <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} %{ |
