zsh-vi-mode
zsh-vi-mode copied to clipboard
no state mode in prompt line with oh-my-zsh and powerlevel10k
General information
Basic examination
tty from ssh access on FeeBSD-12.2 zsh used with Oh-my-zsh and antigen (installed from freebsd packages) zsh-5.8 add to oh-my-zsh as indicated (and also before from antigen pugin) with git cone inside ZSH_CUSTOM (plugins recognized by ohmyzsh)
- [x] I have read through the README page
- [x] I have the latest version of zsh-vi-mode
- [x] I have tested with another terminal program I can not test with another because my FreBSD system is installed on a VPS and i don't want any X service running... it is full tty ssh access. But the terminal emulator used to remote access is Alacritty under Fedora-34 (both from Gnome and Awesome WM tested, and with other emulator it has the same result)
Problem description
From my ohmyzsh powerlevel10k prompt shell, i can not see any zsh-vi-mode indication of state mode (normal mode/insert mode/replace mode, etc...). But the plugin is working... i should miss a point to configure ohmyzsh or maybe powerlevel10k (as i can not see any powerlevel10k indication).
Reproduction steps
- install the plugin from antigen
- clone it on oh my zsh custom directory
- enable the plugin in .zshrc
Expected behavior
see in the prompt line somewhere the zsh-vi-mode mode state
Hi @jerome-diver
Thanks for the issue, actually, the vi mode state should be supported by your theme, but this plugin has also provided several aspects for you to configure your custom prompt of vi mode state, you can refer to here.
Here are some examples for you:
- gkapfham/dotfiles
- jenra-uwu/.dotfiles
- gabrielzschmitz/dotfiles
- pjg/dotfiles
- kelly-lin/dots
- radixm46/dotfiles
- ...
Thanks and Regards
Hi @jeffreytse and thank you for your help. Actualy, i read amll examples and i can not figure how to config my .p10k file to get a segment to show a zsh-vim-mode event status change. the configuration is inside powerlvele10k zsh file and there is a "example" segment able to print a segment (but this one only operate at prompt build time, then after to RETURN a command. I try to use the event zsh-vi-mode cfunction in both my .zshrc and .p10k file without any success (the segment is still not returned at event time, not sure if the function is working out of .zshrc file.
My ZSH script knowledge is not enough to undertstand good how it is working, so i'm locked. There is, inside powerlevel10k plugin theme, a 'vi-mode' segment existing (this one reflect only vi-mode as normal or insert or visual, not replace mode or any other.
Hi @jerome-diver
Thanks for your patience, I understand your concern, and I will take a look as soon as possible.
Thanks and Regards
@jeffreytse thank you
@jeffreytse sorry but it's working now with the vi-mode of powerlevel10k activated. (insert mode only show nothing, i think it is the normal design).
@jerome-diver It's great to hear your good news. Don't hesitate to tell me if you got stuck in any issues.