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

Retry suffix of unmapped key sequences #126

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Retry suffix of unmapped key sequences #126

merged 1 commit into from
Jan 31, 2024

Conversation

ulyssa
Copy link
Owner

@ulyssa ulyssa commented Jan 31, 2024

Currently, when an input sequence is unmapped, ModeKeys::unmapped gets called on just the last key in the sequence. This isn't the right behaviour, and makes it so that doing the common Insert mode mapping of "jj" or "jk" can't work right, since typing an unmapped sequence like "jo" will only type the "o" character. Instead, when a sequence is unmapped, ModeKeys::unmapped should be called on the first character, and then the rest of the sequence should be retries. That way, if "jk" is mapped to <Esc>, typing "jjk" will type "j" and then go to Normal mode.

@ulyssa ulyssa force-pushed the unmapped-sequences branch from 0bab670 to fb0c62c Compare January 31, 2024 06:38
@ulyssa ulyssa merged commit 943e3a3 into main Jan 31, 2024
4 checks passed
@ulyssa ulyssa deleted the unmapped-sequences branch January 31, 2024 06:53
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

Successfully merging this pull request may close these issues.

1 participant