mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Update kitty
completion
This commit is contained in:
parent
1331b65023
commit
9238bbde65
1 changed files with 5 additions and 4 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue