dotfiles/fish.configlink/functions/fish_user_key_bindings.fish

18 lines
632 B
Fish
Raw Normal View History

2021-05-04 13:47:58 +00:00
#!/usr/local/bin/fish
function fish_user_key_bindings
bind -M insert \co 'edit'
2021-11-15 16:17:34 +00:00
bind -M default \co 'edit'
bind -M insert \ca 'cd ~; and edit; and commandline -a "; cd -"; commandline -f execute'
bind -M default \ca 'cd ~; and edit; and commandline -a "; cd -"; commandline -f execute'
2021-05-04 13:47:58 +00:00
bind -M insert \ce 'recent'
2021-11-15 16:17:34 +00:00
bind -M default \ce 'recent'
2021-05-04 15:38:00 +00:00
bind -M insert \cg 'commandline-git-commits'
2021-07-07 02:18:30 +00:00
bind -M insert \cf 'fcd'
2021-11-15 16:17:34 +00:00
bind -M default \cf 'fcd'
2021-08-26 16:44:38 +00:00
bind -M insert \cp 'prj'
bind -M default \cp 'prj'
2021-05-05 12:32:39 +00:00
bind -M insert \x1F accept-autosuggestion
2021-05-12 22:59:22 +00:00
bind -M default \x1F accept-autosuggestion
2021-05-04 13:47:58 +00:00
end