Get zsh completion working apart from delegation

This commit is contained in:
Kovid Goyal
2022-09-19 08:54:54 +05:30
parent cbbda23e01
commit 2cc359ccc8
7 changed files with 160 additions and 6 deletions

View File

@@ -3,5 +3,5 @@
(( ${+commands[kitty]} )) || builtin return
builtin local src cmd=${(F)words:0:$CURRENT}
# Send all words up to the word the cursor is currently on.
src=$(builtin command kitty +complete zsh "_matcher=$_matcher" <<<$cmd) || builtin return
src=$(builtin command kitty-tool __complete__ zsh "_matcher=$_matcher" <<<$cmd) || builtin return
builtin eval "$src"