Closed tapyu closed 8 months ago
Thanks for the report!
Starting with a zshrc that has only the lines you shared under "Expected Behavior", adding viins key bindings works for me. Try adding
bindkey -M viins " " abbr-expand-and-space
bindkey -M viins "^M" abbr-expand-and-accept
Yes, it worked. Thank you!
Great! Added it to the documentation https://zsh-abbr.olets.dev/advanced.html#alternative-keymaps
Belatedly acknowledging more contributors in https://github.com/olets/zsh-abbr#community and https://zsh-abbr.olets.dev/community/
Would you like to be added @tapyu ? If so, I'll have the all-contributors bot open a pull request. Then I'll tag you in it to review for correct info
Hi!
At the moment I've been using https://github.com/MenkeTechnologies/zsh-expand instead of this repo. I kinda get used to it and I didn't have time to fiddle zsh codes anymore. So I cannot be a contributor at the moment. However, if I decide to go back to this plugin and start to make PRs, I would be interested in becoming a contributor. :)
Is there an existing issue for this?
Update the issue title
Expected Behavior
My
zle-line-init()
widget sets the the vi-like insert-mode keymap (viins
) whenever a new command line starts to read a new line of input.I am not sure why, by it prevents zsh-abbr from working... Is that an unpredictable behavior?
Actual Behavior
The VI mode works as expect, but the zsh-abbr doesn't. However, when I went back from the vicmd keymap, I can use abbr.
Steps To Reproduce
.zshrc
Environment
Installation method
Manual
Installation method details
I have my own manual way to install my plugins. Check my dotfiles for more info.
Anything else?
I there is no incompatibility with any other plugin that I am using. AFAIK, the unique issue is with the the
viins
keymap.