jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
2.92k stars 102 forks source link

The value of `%_` in `PS2` is not correct when `zsh-vi-mode` is loaded #153

Open xulongwu4 opened 2 years ago

xulongwu4 commented 2 years ago

General information

Basic examination

Problem description

The PS2 prompt does not show up properly after loading zsh-vi-mode.

Reproduction steps

A minimum .zshrc to reproduce the problem

ZPLUG_HOME=~/.zplug

source $ZPLUG_HOME/init.zsh

zplug "jeffreytse/zsh-vi-mode"

zplug load

Result showing the content of PS2 and its effects: Screenshot from 2021-12-26 12-50-50 Screenshot from 2021-12-26 12-49-46 Screenshot from 2021-12-26 12-50-27

Expected behavior

The following is the correct behavior, which I got without loading zsh-vi-mode: Screenshot from 2021-12-26 12-53-59 Screenshot from 2021-12-26 12-53-09 Screenshot from 2021-12-26 12-52-45

jeffreytse commented 2 years ago

Hi @xulongwu4

I don't have this issue in my environment.

image

Could you please provide your zsh version and terminal information?

Thanks and Regards

xulongwu4 commented 2 years ago

Hi @xulongwu4

I don't have this issue in my environment.

image

Could you please provide your zsh version and terminal information?

Thanks and Regards

@jeffreytse Thanks for taking a look at it. My zsh version is 5.8.0. I tried gnome-terminal and alacritty, and both of them have this problem.

By the way, the value of %_ does not seem correct in your screenshot as well? I would expect the value of %_ be for in your case, but it turns out to be then. I am wondering if your prompt plugin could affect the test results there.

jeffreytse commented 2 years ago

Hi @xulongwu4

Thanks for your issue, and sorry for the late reply, currently I'm quite busy, I will research your issue when I am possible. Hope you have a good day! : )

Thanks and Regards

dmxk06 commented 1 year ago

anything new on this?