mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
9c6bd8b1b4
This is a wrapper that calls kitty to dynamically provide completions, as generated by kitty itself, via `kitty + complete setup fish`. ref: https://sw.kovidgoyal.net/kitty/#fish
6 lines
179 B
Fish
6 lines
179 B
Fish
function __kitty_completions
|
|
# Send all words up to the one before the cursor
|
|
commandline -cop | kitty +complete fish
|
|
end
|
|
|
|
complete -f -c kitty -a "(__kitty_completions)"
|