We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please report the following information as possible as you can:
Switching modes doesn't trigger an auto reset prompt when users have a custom prompt string for mode indicator.
.zshrc
setopt prompt_subst PROMPT='$(custom_prompt)' custom_prompt() { if [[ $KEYMAP == "vicmd" ]]; then echo -n "vi cmd mode: " else echo -n "insert mode: " fi } source ~/zsh-vi-mode/zsh-vi-mode.zsh
zsh
ESC
i
vicmd mode:
insert mode:
The prompt should be auto changed as expectation.
The text was updated successfully, but these errors were encountered:
fix: changing modes don't trigger an auto prompt reset (#243)
fb2f825
Related to #219
Sorry, something went wrong.
jeffreytse
No branches or pull requests
General information
Please report the following information as possible as you can:
Basic examination
Problem description
Switching modes doesn't trigger an auto reset prompt when users have a custom prompt string for mode indicator.
Reproduction steps
.zshrc
file as below:zsh
ESC
andi
vicmd mode:
andinsert mode:
Expected behavior
The prompt should be auto changed as expectation.
The text was updated successfully, but these errors were encountered: