Update kitty completion

This commit is contained in:
Kid 2022-06-05 20:46:38 +08:00 committed by Fabian Boehm
parent 1331b65023
commit 9238bbde65

View file

@ -1,6 +1,7 @@
function __kitty_completions
# Send all words up to the one before the cursor
commandline -cop | kitty +complete fish
function __ksi_completions
set --local ct (commandline --current-token)
set --local tokens (commandline --tokenize --cut-at-cursor --current-process)
printf "%s\n" $tokens $ct | command kitty +complete fish2
end
complete -f -c kitty -a "(__kitty_completions)"
complete -f -c kitty -a "(__ksi_completions)"