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

Compatibility with xcape? #205

Closed
3 tasks done
musjj opened this issue Mar 13, 2023 · 2 comments
Closed
3 tasks done

Compatibility with xcape? #205

musjj opened this issue Mar 13, 2023 · 2 comments

Comments

@musjj
Copy link

musjj commented Mar 13, 2023

General information

  • Terminal program: wezterm 20230310-182648-fe6280f0
  • Operating system: arch
  • ZSH framework: zgen + prezto
  • ZSH version: 5.9
  • ZVM version: 0e66668

Basic examination

  • I have read through the README page
  • I have the latest version of zsh-vi-mode
  • I have tested with another terminal program

Problem description

I've remapped my capslock key to behave as both a control key and an escape key, but it caused zvm to misbehave in a weird way.

Pressing the capslock key will cause the cursor to transform into a block for a brief moment, before turning into an underscore. Pressing the button again will emit this error: No such widget '^[^[^['.

Still not really familiar with zsh in general, so I have no idea what is causing this.

Reproduction steps

setxkbmap -option ctrl:nocaps
xcape -e "Control_L=Escape"

Then press the (physical) capslock key.

Expected behavior

zvm enters normal mode.

@musjj
Copy link
Author

musjj commented Mar 13, 2023

Hmm, it looks like that xcape is sending the escape key twice after releasing the capslock key. Not sure why this is happening.

@musjj
Copy link
Author

musjj commented Mar 13, 2023

Never mind, I think I've accidentally ran the xcape command twice due to sourcing some file, which is why it was sending double escapes.

@musjj musjj closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant