history-search-multi-word
history-search-multi-word copied to clipboard
[bug]: unable to remap keybindings
I like this plugin, but I want to change some of its keybindings. I tried changing the hsmw
keymap with the changes I want, but as far as I can tell, they aren't being applied (and the keymap doesn't even exist before the history search is ever used). Is there some way to do so?
And you were trying to use this?
I have the same problem. This is, what I have in my .zshrc
zstyle ":history-search-multi-word" page-size "20"
zinit ice wait"1" lucid
zinit load zdharma-continuum/history-search-multi-word
bindkey -M hsmw '^[j' _hsmw_jump_entry
bindkey -M hsmw '^[k' _hsmw_context_main
And what I get, when I start the zsh:
/home/sebflu/.zshrc:bindkey:299: no such keymap 'hsmw' /home/sebflu/.zshrc:bindkey:300: no such keymap 'hsmw'
A workaround would be to adjust the mappings directly within the history-search-multi-word
script. But because I load the latest version via zinit
, this would break my updating workflow. Is it possible to adjust the keymaps from .zshrc
?