This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I discover fzf-zsh flash for vi-mode(oh-my-zsh plugin, it at
$ZSH/plugins/vi-mode
). Both fzf-zsh plugin and vi-mode bind key^R
, so the back will cover the front.And
^R
at vi-mode is "history-incremental-search-backward", so we can cover it.我们 fzf-zsh 是通过
^R
方式触发的,如果正好用户也用了vi-mode
的话,vi-mode
里也注册了^R
,而且功能同样是触发反向搜索,所以要想让fzf-zsh
生效的话就应该加在vi-mode
后面,就像plugins = (....vi-mode.....fzf-zsh)
。因为fzf-zsh
的功能就是用来覆盖上面这个的,所以刚刚好也可以覆盖这个快捷键的注册