mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-04 19:57:37 +00:00
feat(config): add television cable integration and related keybindings across shells
This commit is contained in:
1 parent
f033b29a7d
commit
3c4af515fa
12 files changed
+137
-21
No files matched your search
@@ -10,8 +10,9 @@ 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 -M $mode ctrl-e 'yy; commandline -f repaint'
|
||||
# ctrl-e: tv git-files (bat preview, enter opens nvim). ctrl-o, ctrl-p
|
||||
# and down also open tv cables — same keys in zsh and bash.
|
||||
bind -M $mode ctrl-e 'tv git-files; commandline -f repaint'
|
||||
bind -M $mode ctrl-b purple repaint
|
||||
bind -M $mode ctrl-y clip-last
|
||||
|
||||
@@ -22,10 +23,11 @@ function fish_user_key_bindings
|
||||
|
||||
# Arrow keys: atuin owns up (bound from config.fish, survives the
|
||||
# fish_vi_key_bindings reset above because that only erases presets),
|
||||
# down runs pj — but only on an idle, empty prompt; see _pj_bind_down.
|
||||
# down opens the pj tv cable — but only on an idle, empty prompt; see
|
||||
# _pj_bind_down.
|
||||
bind -M $mode down _pj_bind_down
|
||||
|
||||
# ctrl-f: pick file(s) with television and open in nvim.
|
||||
# ctrl-f: yazi (cd's to yazi's exit dir on quit).
|
||||
bind -M $mode ctrl-f 'yy; commandline -f repaint'
|
||||
bind -M $mode ctrl-g 'lazygit; commandline -f repaint'
|
||||
|
||||
|
||||
Reference in new issue
Block a user