2026-07-16 16:58:06 -04:00
|
|
|
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).
|
2026-08-13 19:45:39 -04:00
|
|
|
# ctrl-e: yazi, same as ctrl-f (cd's to yazi's exit dir on quit).
|
|
|
|
|
bind ctrl-e 'yy; commandline -f repaint'
|
2026-07-16 16:58:06 -04:00
|
|
|
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
|