mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Completion: Delegate kitty +complete to kitten
Implement `kitten __complete__ setup` in Go. Fix zsh completion script to check `kitten`.
This commit is contained in:
parent
bed4f33be8
commit
370aa3aaa6
8 changed files with 120 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#compdef kitty
|
||||
|
||||
(( ${+commands[kitty]} )) || builtin return
|
||||
(( ${+commands[kitten]} )) || 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 kitten __complete__ zsh "_matcher=$_matcher" <<<$cmd) || builtin return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue