From 9c6bd8b1b4fc2069d1e9aed0945e1b9aff0f493d Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 14 Oct 2018 16:32:49 -0500 Subject: [PATCH] Add completions for `kitty` terminal 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 --- share/completions/kitty.fish | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 share/completions/kitty.fish diff --git a/share/completions/kitty.fish b/share/completions/kitty.fish new file mode 100644 index 000000000..8f26b2165 --- /dev/null +++ b/share/completions/kitty.fish @@ -0,0 +1,6 @@ +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)"