This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/fish/key-bindings.fish

39 lines
1.2 KiB
Fish
Raw Permalink Normal View History

2020-01-16 17:01:59 -06:00
function fish_user_key_bindings
2023-05-11 10:32:36 -05:00
set --export SKIM_TMUX_HEIGHT ""
2023-07-17 11:23:37 -05:00
set --export --universal SKIM_ALT_C_COMMAND "fd --hidden --type directory"
set --export --universal SKIM_CTRL_T_COMMAND "fd --hidden"
command -q sk && begin
functions | grep skim_key_bindings &>/dev/null && skim_key_bindings
bind -M insert \cg skim-cd-widget
end
2020-01-22 17:25:47 -06:00
fish_vi_key_bindings insert --no-erase
2020-01-16 17:01:59 -06:00
2023-05-09 13:35:49 -05:00
set --universal fish_cursor_default block
set --universal fish_cursor_insert line
set --universal fish_cursor_block block
fish_vi_cursor
set --universal fish_vi_force_cursor 1
2022-12-13 13:41:40 -06:00
# bind "jk" from insert mode to return to normal mode
set normal_mode "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char force-repaint; end"
bind -M insert jk $normal_mode
bind -M insert jK $normal_mode
bind -M insert Jk $normal_mode
bind -M insert JK $normal_mode
bind -M insert jj $normal_mode
bind -M insert jJ $normal_mode
bind -M insert Jj $normal_mode
bind -M insert JJ $normal_mode
2020-01-16 17:01:59 -06:00
2020-01-17 03:02:53 -06:00
bind -M insert \cp up-or-search
bind -M insert \cn down-or-search
2020-01-22 17:25:47 -06:00
bind -M insert \ce end-of-line
bind -M insert \ca beginning-of-line
2020-03-17 12:37:01 -05:00
bind -M insert \cv edit_command_buffer
bind -M default \cv edit_command_buffer
2020-01-16 17:01:59 -06:00
end