Open wolfo opened 2 years ago
This is an old issue, but in case somebody runs into this, the solution in https://github.com/jeffreytse/zsh-vi-mode/issues/242 worked.
I have:
function zvm_after_init() {
# CTRL-R will pull up zaw-history (backwards zsh history search)
bindkey '^r' zaw-history
# CTRL-B will pull up zaw-git-branches which will search your current git branches and switch (git checkout) to the branch you select when you hit enter.
bindkey '^b' zaw-git-branches
}
General information
Basic examination
Problem description
I prefer to use zaw for searching the history, but the up/down keybindings are overwritten, even when manually loading zaw after zsh-vi-mode.
Reproduction steps
antigen bundle jeffreytse/zsh-vi-mode
antigen bundle zsh-users/zaw
Alternative reproduction steps
source .antigen/bundles/jeffreytse/zsh-vi-mode/zsh-vi-mode.plugin.zsh
source .antigen/bundles/zsh-users/zaw/zaw.plugin.zsh
Expected behavior
Whichever plugin that is sourced last should overwrite keybindings, therefore zaw should take precedence if sourced last.