history-search-multi-word icon indicating copy to clipboard operation
history-search-multi-word copied to clipboard

[bug]: unable to remap keybindings

Open eaglgenes101 opened this issue 3 years ago • 2 comments

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?

eaglgenes101 avatar Mar 02 '22 23:03 eaglgenes101

And you were trying to use this?

vladdoster avatar Jun 21 '22 20:06 vladdoster

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?

seflue avatar Dec 23 '23 01:12 seflue