-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
"," cannot be remapped when {"vim.leader": ","} #2932
Comments
Related: #2735 |
I think you meant to swap the before and after in your configuration. The PR fixes the above issue but exposes a larger issue. As we don't do any look-ahead, if there is an immediate matching action for the key, the extension will immediately execute it. For instance, if you bind your leader key to an existing VIM key (e.g. before: , f, e, s When you press , (which is the leader key), we will immediately execute: Line 749 in 9cff13d
|
Interesting, I misunderstood the meaning of "before" and "after" here. Thanks for your work and energy looking into this. I'm eagerly awaiting a fix of the larger issue. |
I'm going to close this as a dupe of #1821 as it's the same root cause. |
Describe the bug
If you remap the leader to "," there's no way to reference the old functionality of ",".
To Reproduce
Replace settings.json with the following text:
Place the following text in a new file
Place the cursor on the start of the line. In insert mode, "fe;" will jump to the first "e" and then the second "e". Now press "^". Nothing will happen.
(Note: "^" also does not act as a leader. Commands I've mapped to leader do not work when using "^" in the above scenario).
Expected behavior
I would expect that pressing "^" would move the cursor back to the first "e" in the above example.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: