More work on completions

This commit is contained in:
Kovid Goyal
2018-08-25 11:27:22 +05:30
parent d3b31224cd
commit c51e7d3bde
3 changed files with 61 additions and 6 deletions

View File

@@ -2,7 +2,8 @@
_kitty() {
local src
src=$(printf "%s\n" "${words[@]}" | kitty +complete zsh)
# Send all words upto the word the cursor is currently on
src=$(printf "%s\n" "${(@)words[1,$CURRENT]}" | kitty +complete zsh)
if [[ $? == 0 ]]; then
eval ${src}
fi