mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
24 lines
1005 B
Fish
24 lines
1005 B
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).
|
||
|
|
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
|