zsh-vi-mode: Conflicts with zsh-autosuggestions setting
I’m using oh-my-zsh to manage plugins. With zsh-vi-mode enabled, this zsh-autosuggestions setting:
bindkey '^ ' autosuggest-accept
is not working, specifically I cannot use ctrl-space to complete autosuggestions. I can only use the default right-arrow key to complete.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 16 (7 by maintainers)
Commits related to this issue
- fix: binding ctrl-<space> does not work (#57) This commit fixed the issue that `ctrl-<space>`, that is the control character `^@` could not be escaped to a printable character. — committed to jeffreytse/zsh-vi-mode by jeffreytse 3 years ago
- Fix https://github.com/jeffreytse/zsh-vi-mode/issues/57 — committed to g6ai/dotfiles by g6ai 3 years ago
@jeffreytse The snippet works! Thank you very much!
@g6ai, could you try the below snippet:
Hi @g6ai , also, you run the command
bindkey -M viins | grep accept
and provide the content to me.Thank you very much. I searched around and used this way to verify if this is a problem on my terminal, by using this key-binding in .zshrc:
And when I type ctrl-<space>,
^@
is printed in the terminal. So it should not be a problem on the terminal.I’ve tried disabling all my custom setting, only leaving basic oh-my-zsh lines and two plugins:
still not solved. More info on my setup:
OS: macOS 10.14.6 (for 32-bit compatibility reason I have to stay at this version) Terminal: I tried both Terminal.app and iTerm2.app, same results
Please let me know if I can provide any further info, thanks!