Closed jeffreytse closed 9 months ago
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.
Related to #219
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.