Skip to content
New issue

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

Normal mode in IntelliJ terminal hides characters #120

Closed
stutterrrrer opened this issue Sep 1, 2021 · 12 comments
Closed

Normal mode in IntelliJ terminal hides characters #120

stutterrrrer opened this issue Sep 1, 2021 · 12 comments
Assignees
Labels
bug Something isn't working verified This issue was already verified

Comments

@stutterrrrer
Copy link

Using the terminal emulator by IntelliJ.
Whenever I enter normal mode to navigate, all the characters that had the block cursor fallen on them would be hidden,
and only when I press ⇧A to enter insert mode will the characters re-appear.

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 (the problem doesn’t happen with iTerm2 or Terminal)

Problem description

Reproduction steps

  1. Use IntelliJ Terminal with zsh-vi-mode
  2. Enter Normal mode and move around
  3. see the characters disappear under cursor

Expected behavior

characters not disappearing under block cursor of normal mode.

Text.disappearing.-.recording.mov
@jeffreytse jeffreytse self-assigned this Sep 1, 2021
@jeffreytse jeffreytse added the bug Something isn't working label Sep 1, 2021
@jeffreytse
Copy link
Owner

Hi @stutterrrrer

Thanks for your reporting. I will work on this issue as soon as possible.

Thanks and Regards

@stutterrrrer
Copy link
Author

Of course man, take your time;
I wasn’t even sure if this issue falls within your jurisdiction
nor was I expecting you to come back to me so soon;
gonna take this opportunity and say thanks for this wonderful plugin!

@jeffreytse jeffreytse added the verified This issue was already verified label Sep 2, 2021
@jeffreytse
Copy link
Owner

Hi @stutterrrrer

Thanks for your patience, now this issue has been addressed and fixed. Please update to the latest version and try again.

Thanks and Regards

jeffreytse added a commit that referenced this issue Sep 2, 2021
This issue occurs under the replace mode in IntelliJ terminal, it
also refers to #120.
@stutterrrrer
Copy link
Author

Hi, thanks for the speedy response!
but I’m a newbie to the whole programming thing… How do I find the updated version to download?
I installed ZVM from Homebrew, and it’s not showing that any plugins are in need of update..
sorry if this is a dumb question

@jeffreytse
Copy link
Owner

Hi, you can follow the instructions on manual installation, use git to clone this repository.

@stutterrrrer
Copy link
Author

Done that, it’s fixed! thanks so much.
While I have you here, I also want to map ‘v’ to escape visual mode, just like how ‘v’ in visual mode behaves in vim.
but it doesn’t seem to work;
I’ve modified line 3307 to ” zvm_bindkey visual ‘e’ zvm_vi_edit_command_line “ so that ‘v’ won’t be used to open vim,
and changed line 56 to “ZVM_VI_VISUAL_ESCAPE_BINDKEY=v”

‘e’ key works as expected and opens vim, but ‘v’ just turns the block cursor into an underline cursor, while still remaining in visual mode.

Should I create a separate issue for this with screen capture attached, or is ZVM not supposed to work the way I wanted?

@jeffreytse
Copy link
Owner

jeffreytse commented Sep 2, 2021

Hi @stutterrrrer currently you can not use v to escape out from Visual mode, however, you can use V to escape out from Visual Line mode, you can use Ctrl-[ alternatively. Welcome to star this project for further updates in the future.

@stutterrrrer
Copy link
Author

understood. Thanks for all your hard work!
I’ll close the issue now

@jeffreytse
Copy link
Owner

@stutterrrrer You're welcome, hope you have a good day! : )

@stutterrrrer stutterrrrer reopened this Sep 2, 2021
@stutterrrrer
Copy link
Author

Hi @jeffreytse , sorry to bother you again,
but on my end it seems the bug is fixed for the terminal,
but when I open up tmux, the issue persists…
I’ve included a screen recording here:

Screen.Recording.2021-09-02.at.16.57.21.mov

jeffreytse added a commit that referenced this issue Sep 5, 2021
When we attach to a tmux session from InteliJ terminal, if the
session is created outside terminal, the charcters are also hidden
weirdly, besides update the cursor, we should also forcibly
redisplay if the terminal is created in tmux (#120).
@jeffreytse
Copy link
Owner

Hi @stutterrrrer

This issue has been addressed and settled down, please update your plugin to the latest version, and try again.

Thanks and Regards

@stutterrrrer
Copy link
Author

Got it! Thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified This issue was already verified
Projects
None yet
Development

No branches or pull requests

2 participants