mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Implement completion for fish
This commit is contained in:
parent
ef9b765f81
commit
5666b1b0fd
5 changed files with 49 additions and 3 deletions
|
|
@ -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 +complete fish2
|
||||
printf "%s\n" $tokens $ct | command kitty-tool __complete__ fish
|
||||
end
|
||||
|
||||
complete -f -c clone-in-kitty -a "(__ksi_completions)"
|
||||
|
|
|
|||
|
|
@ -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 +complete fish2
|
||||
printf "%s\n" $tokens $ct | command kitty-tool __complete__ fish
|
||||
end
|
||||
|
||||
complete -f -c edit-in-kitty -a "(__ksi_completions)"
|
||||
|
|
|
|||
|
|
@ -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 +complete fish2
|
||||
printf "%s\n" $tokens $ct | command kitty-tool __complete__ fish | source -
|
||||
end
|
||||
|
||||
complete -f -c kitty -a "(__ksi_completions)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue