zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

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

Open xulongwu4 opened this issue 3 years ago • 4 comments

General information

Basic examination

  • [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

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

xulongwu4 avatar Dec 26 '21 17:12 xulongwu4

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 avatar Dec 30 '21 15:12 jeffreytse

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.

xulongwu4 avatar Dec 30 '21 19:12 xulongwu4

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

jeffreytse avatar Jan 16 '22 02:01 jeffreytse

anything new on this?

dmxk06 avatar Jun 12 '23 17:06 dmxk06