Merge branch 'ksi-completion-fish' of https://github.com/page-down/kitty

This commit is contained in:
Kovid Goyal 2022-11-16 14:00:28 +05:30
commit 4b05822474
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
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-tool __complete__ fish
printf "%s\n" $tokens $ct | command kitty-tool __complete__ fish | source -
end
complete -f -c clone-in-kitty -a "(__ksi_completions)"

View File

@ -1,7 +1,7 @@
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-tool __complete__ fish
printf "%s\n" $tokens $ct | command kitty-tool __complete__ fish | source -
end
complete -f -c edit-in-kitty -a "(__ksi_completions)"

View File

@ -1,7 +1,7 @@
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-tool __complete__ fish
printf "%s\n" $tokens $ct | command kitty-tool __complete__ fish | source -
end
complete -f -c kitty-tool -a "(__ksi_completions)"