Open f-a-a opened 7 years ago
This is a great opportunity to create a new built-in plugin or custom plugin for anyone interested in their first PR. As reference there is already a basic implementation in the gitter chatroom: https://gitter.im/geometry-zsh/Lobby?at=592a5c1bfcbbe1891c50bcad
Thanks @f-a-a for bringing this up.
this needs to be re-visited since its not as straightfoward as just checking for KEYMAP
I tested it out, and it always shows bindkey -v
in my zshrc...
When I was testing locally, pressing ESC
or ^[
should update the prompt to <NORMAL>
and then hitting any of the edit keys should switch it back to <INSERT>
. It should be possible to switch back and forth without ever submitting a command.
I'll check again but it could be that I missed something about the ZLE widget hooks and they're not being called properly. Thanks for testing it!
I tried on a different computer and I get the same behavior. I'll need a bit of time to investigate.
Zshell has the ability to go into vi-mode with
bindkey -v
settings. If you are usingoh-my-zsh
, this feature can be enabled by including the vi-mode plugin.However, the interest with
geometry
is to port the visual indicator over. vi-mode implements its own visual indicator functionvi_mode_prompt_info()
where it toggles betweenvimcmd
andmain
mode indicatingNORMAL
andINSERT
mode respectively.The request here is to include the visual indicator as a plugin in
geometry
. Thank you in advance.\cc @fribmendes, @desyncr