Files
dotfiles/dot_config/fish/functions/fish_user_key_bindings.fish
T

26 lines
1.1 KiB
Fish

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).
# ctrl-e: yazi, same as ctrl-f (cd's to yazi's exit dir on quit).
bind ctrl-e 'yy; commandline -f 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