Hook up kitty-tool completions with shell integration

This commit is contained in:
Kovid Goyal
2022-09-30 13:39:15 +05:30
parent 74b1cac344
commit 8f5302a650
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +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
end
complete -f -c kitty-tool -a "(__ksi_completions)"