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

evil-escape sends duplicate/invalid key presses in some console programs #107

Open
bcc32 opened this issue Jan 17, 2024 · 0 comments
Open

Comments

@bcc32
Copy link

bcc32 commented Jan 17, 2024

(Examples with evil-escape-key-sequence set to "fd")

In ansi-term and other term-buffers, when running less, if the user
presses f, the file being viewed is actually scrolled down twice
instead of once as it should be.

This is because evil-escape causes an f key press from the user to
be sent as the following sequence of key presses:

f <backspace> f

In general, term-mode can be running some arbitrary program that
doesn't interpret f <backspace> f as equivalent to f. In that
case, it doesn't seem like evil-escape is completely safe to use in
term-mode at all, since it's sending key sequences to an arbitrary
terminal program that don't correspond to the user's intention.

Perhaps evil-escape-excluded-major-modes should include term-mode
by default, as evil-escape's support for it works sometimes but is
not correct in all cases.

bcc32 added a commit to bcc32/dotfiles that referenced this issue Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant