2016-10-13 11:09:04 +02:00
|
|
|
function fish_user_key_bindings
|
2017-05-08 20:47:07 +02:00
|
|
|
fish_vi_key_bindings
|
|
|
|
set fish_escape_delay_ms 10
|
|
|
|
|
2017-05-09 19:12:38 +02:00
|
|
|
## Useful for rsync when folders are completed with fzf.
|
|
|
|
bind \cw trim_trailing_slashes
|
|
|
|
|
2017-06-06 19:54:51 +02:00
|
|
|
bind \e\x7f backward-kill-word
|
|
|
|
bind -M insert \e\x7f backward-kill-word
|
2017-05-09 19:12:38 +02:00
|
|
|
|
2017-05-28 15:56:41 +02:00
|
|
|
bind -M insert \ce edit_command_buffer
|
|
|
|
bind -m insert \ce edit_command_buffer
|
2017-05-09 19:12:38 +02:00
|
|
|
|
2017-06-07 19:26:17 +02:00
|
|
|
bind \cv fish_primary_paste
|
|
|
|
bind \cx fish_primary_copy
|
|
|
|
|
2016-10-13 11:09:04 +02:00
|
|
|
## fzf
|
|
|
|
if type -pq fzf
|
|
|
|
source $fish_config_path/fzf.fish
|
|
|
|
end
|
|
|
|
end
|