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

fix(input/#2114): Handle nnoremap correctly #2908

Merged
merged 6 commits into from
Jan 1, 2021

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Dec 31, 2020

Issue: All of our bindings, whether defined by nmap or nnoremap, were allowing recursive definitions. This breaks the case in #2114, where the remaps would bounce back and forth until they hit our recursion limit.

Defect: We weren't gating recursive remaps, aside from the recursion limit.

Fix: Define and handle no-recursive remaps correctly.

Todo:

Fixes #2114

Depends on #2883

Related #1551

@bryphe bryphe added WIP and removed WIP labels Dec 31, 2020
bryphe added a commit that referenced this pull request Jan 1, 2021
Fixes #2883 

__TODO:__
- [x] Make use of our new keyboard layout module (thanks @zbaylin !)
- [x] Bring back special-key handling
- [x] Add test case for #2883 
- [x] Fix scancodes / verify 'AllKeysReleased' behavior for Control+Tab
- [x] Fix bug with C-C / C-D / C-U being forwarded to Vim
- [x] Fix newly introduced bug with Control+Shift+P/Cmd+Shift+P

__Next steps:__
- #2114 - respect 'no recursive' flag for remaps (#2908)
- #2293 - Update the `keyDown` function in `EditorInput` to take a list of candidates as opposed to a single keypress.
- #2293 - Enable some bindings that were previously blocked:
  - `<C-W>+`
  - `<C-W>_`
  - `<C-W>|`
- Refactor input event subscription and `Sld2.TextInput.start` out of store and into a `Service_Input` sub
- Move `input` utility to common integration test infrastructure
- Remove the `KeyboardInput` Action
Base automatically changed from fix/input/2883/alt-productions to master January 1, 2021 02:09
@bryphe bryphe force-pushed the fix/input/2114/no-recursive-flag branch from 112f29c to c52e260 Compare January 1, 2021 02:23
@bryphe bryphe merged commit 8a1739e into master Jan 1, 2021
@bryphe bryphe deleted the fix/input/2114/no-recursive-flag branch January 1, 2021 17: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.

Experimental.viml Keybinding issues (noremap)
1 participant