Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty, vendored at upstream commit 91fb38a without its git history.
8 lines
285 B
Fish
8 lines
285 B
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 kitten __complete__ fish | source -
|
|
end
|
|
|
|
complete -f -c kitty -a "(__ksi_completions)"
|