Skip to content

Commit

Permalink
fix: Make C-R acts as expected(redo) in vi-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
owarai committed Apr 16, 2021
1 parent 8e25976 commit bca0df6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conf.d/fzf.fish
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ set --global fzf_search_vars_cmd '__fzf_search_shell_variables (set --show | psu
if not set --query fzf_fish_custom_keybindings
# \cf is Ctrl+f
bind \cf __fzf_search_current_dir
bind \cr __fzf_search_history
bind \cv $fzf_search_vars_cmd
# The following two key binding use Alt as an additional modifier key to avoid conflicts
bind \e\cl __fzf_search_git_log
Expand All @@ -21,6 +20,8 @@ if not set --query fzf_fish_custom_keybindings
bind --mode insert \cv $fzf_search_vars_cmd
bind --mode insert \e\cl __fzf_search_git_log
bind --mode insert \e\cs __fzf_search_git_status
else # only override Ctrl+R when no vi-mode included in keybindings.
bind \cr __fzf_search_history
end
end

Expand Down

0 comments on commit bca0df6

Please sign in to comment.