doc.kak: Simplify completion script
This commit is contained in:
parent
01b52df53d
commit
19cda837ff
|
@ -46,9 +46,7 @@ define-command -params 1 -hidden doc-render %{
|
||||||
|
|
||||||
define-command -params 1 \
|
define-command -params 1 \
|
||||||
-shell-candidates %{
|
-shell-candidates %{
|
||||||
find "${kak_runtime}/doc/" -type f -name "*.asciidoc" | while read l; do
|
find "${kak_runtime}/doc/" -type f -name "*.asciidoc" | sed 's,.*/,,; s/\.[^/]*$//'
|
||||||
basename "${l%.*}"
|
|
||||||
done
|
|
||||||
} \
|
} \
|
||||||
doc -docstring %{doc <topic> [<keyword>]: open a buffer containing documentation about a given topic
|
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} %{
|
An optional keyword argument can be passed to the function, which will be automatically selected in the documentation} %{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user