fish's wrapping facility does not preserve argv[0] so it cannot be used unlike for zsh and bash
9 lines
313 B
Fish
9 lines
313 B
Fish
function __ksi_completions
|
|
set --local ct (commandline --current-token)
|
|
set --local tokens (commandline --tokenize --cut-at-cursor --current-process)
|
|
set tokens[1] "edit-in-kitty"
|
|
printf "%s\n" $tokens $ct | command kitty +complete fish2
|
|
end
|
|
|
|
complete -f -c edit-in-kitty -a "(__ksi_completions)"
|