config(fish): add fish completions for cli tools

This commit is contained in:
Prad Nukala committed 2026-07-16 16:58:06 -04:00
1 parent b1fb6ee6fb
commit 7db95c2076
48 files changed
+2241

No files matched your search

@@ -0,0 +1,24 @@
function fish_user_key_bindings
# Keys owned by kitty.conf never reach fish and are NOT bound here:
# ctrl-g → lazygit overlay, ctrl-a → omp hsplit, ctrl-y → yazi vsplit,
# ctrl-h/j/k/l → vim-aware split nav (pass_keys.py).
bind ctrl-e nvim repaint
bind ctrl-b purple repaint
bind ctrl-y clip-last
bind ctrl-o 'gho; commandline -f repaint'
bind ctrl-p 'pj; commandline -f repaint'
bind ctrl-a 'omp; commandline -f repaint'
# bind \ca 'launch_omp_livediff_overlay; commandline -f repaint'
# ctrl-f: pick file(s) with television and open in nvim.
bind ctrl-f 'yy; commandline -f repaint'
bind ctrl-g 'lazygit; commandline -f repaint'
# ctrl-c routes through the clear wrapper (kitty scrollback + prompt
# pinned to the bottom) AND wipes any text typed on the command line.
bind ctrl-c 'commandline -r ""; clear; commandline -f repaint'
# ctrl-q mirrors ctrl-d's preset (`exit`) — quit the shell.
bind ctrl-q exit
end