-
Notifications
You must be signed in to change notification settings - Fork 365
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
fix(keys): refactor retrigger mechanism #428
Conversation
8f076fe
to
de9e922
Compare
I did already fix that, no? I use mini.ai myself with those keybiondings and it works as expected |
yes, you fixed the main problem. However consider this case:
I suspect this happens because |
de9e922
to
232e093
Compare
232e093
to
e8903ba
Compare
Thank you for the clarification. Will need to check this PR with some issues from the past related to keymaps. I'm also not that sure of the |
Yeah. I agree with the sentiment about using
Edit: I've figured out a better solution for the retrigger logic |
we can just eval `"<Ignore>" .. lhs` to retrigger the mapping
I implemented the solution you propose a while back, but it failed some issues people had in the past. Although, I did not add that What I'll do first, I'll add a bunch of unit tests for those issues I'm talking about, so we have something to test this with. Will do so on Monday. |
Understood. From my various "tests" it works pretty well:
|
When will this pr be merged? |
I still need to check existing issues related to keymaps and make sure they still work as expected. If you want to help, add a comment to this PR linking to existing issues I should re-check with this PR |
AFAICT, these are the more relevant issues regarding the keys handler:
All of these seems to be fixed using neovim master but not on neovim stable (0.8.x). Particularly:
|
ok, thanks. I'll try to look into it later today. I do think the pending keys probably need to be added to your PR, but I'll see if it's needed when I encounter issues |
I checked all existing issues and these changes indeed seem to work for all of them. Thanks for fixing this! |
Happy to help! Though I did mention that there were some issues with neovim stable. Were you able to verify this? |
It all seemed to work for me on stable. What issue in particular didnt work on stable for you? |
This one seems to work on nightly, but not on stable. #511 Will look into it |
should fix #286.