-
-
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
Refactor Remapper #4735
Merged
Merged
Refactor Remapper #4735
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
3b22581
[PoC] Refactor Remapper
9b66bfe
Merge branch 'master' into remapRefactor_PoC
J-Fields 73d2968
Fix bug with actions that 'mustBeFirstKey'
berknam 09beebb
Rename variables, bug fixes and add debug logs:
berknam 520d252
Merge branch 'master' into remapRefactor_PoC
berknam 1f9c505
Fix timeout being called twice on ambiguous remaps
berknam 417752a
Fix potentialRemaps infinite loop when using count
berknam a942c6c
Merge branch 'master' into remapRefactor_PoC
J-Fields 06d82d0
Merge branch 'master' into remapRefactor_PoC
berknam 5a769eb
Fix timeout waiting twice on remapping
berknam 15998d9
Add test for this new remapper
berknam 7104ddf
Fix bug in test
berknam b886cdf
Increase timeout offset in test
berknam 08c0742
another try at fixing the test
berknam b705b55
Merge branch 'master' into remapRefactor_PoC
berknam 8952b29
finally fix the test for the new remapper
berknam 964803e
Fix another bug with actions that 'mustBeFirstKey'
berknam acede5d
Fix remapper and showCmd
berknam d9342a8
Implement OperatorPendingMode Remappings
berknam 7b9e354
Merge branch 'master' into remapRefactor_PoC
berknam 5a1fa75
Merge branch 'master' into remapRefactor_PoC
J-Fields 85bc42c
Apply the review changes
berknam 1d6f896
Merge branch 'master' into remapRefactor_PoC
berknam 1507df8
Use updateShowCmd
berknam 5c63426
Update .vimrc Remapping Regexes
berknam e38605e
Implement special case in recursive remaps
berknam a1c41bf
Implement special case for '0' key to enable remap
berknam 6fbaf12
Prevent remapping on the second char of actions
berknam a8bb0a6
Merge branch 'master' into remapRefactor_PoC
berknam 6d12d31
Fix showCmd to now include pending keys
berknam 0d9bbff
Fix commandString for registers and macros
berknam 73ac14d
Implement unmap and mapclear from the .vimrc files
berknam 0e15611
Merge branch 'master' into remapRefactor_PoC
berknam 1759997
Add NonRecursive remaps to unmap and mapclear
berknam cf4b97f
Fix showCmd for <Del> key after count
berknam 76add02
Implement maxmapdepth and Stoping remaps on error
berknam 01f6585
Create new tests and test implementation
berknam 4d08ee1
Merge branch 'master' into remapRefactor_PoC
berknam 83b163a
Prevent multiple checks of the same keyslice
berknam a39d5f8
Allow user to press key to cancel infinite remaps
berknam a369ef6
Remove old code that is no longer needed
berknam 4f314e4
Merge branch 'master' into remapRefactor_PoC
berknam 7cde12f
Change name of timeout key, add SpecialKeys util
berknam 158d760
Implement InsertMode virtualKeys
berknam fb36443
Merge branch 'master' into remapRefactor_PoC
berknam 8142fe1
Fix bug with ambiguous remaps on different
berknam 22b3ebb
Turn OperatorPendingMode into a pseudo mode
berknam 574a7f6
Fix bug when the TimeoutFinished key was the last
berknam f48583d
Merge branch 'master' into remapRefactor_PoC
berknam 72c0267
Fix bug with remaps after failed movement
berknam cae93ac
Remappings only create an undo point at the end
berknam 853dcdc
Merge branch 'master' into remapRefactor_PoC
berknam 4db87a6
Add `config` option on tests with remaps as well
berknam c682999
Merge branch 'master' into remapRefactor_PoC
berknam 1ac20c3
Implement operatorPendingMode half cursor
berknam 4347d4f
Add virtual key and showCmd to replaceMode
berknam dfef523
Merge branch 'master' into remapRefactor_PoC
berknam 1aec4e5
Merge branch 'master' into remapRefactor_PoC
berknam e3c13a9
Remove unnecessary type assertions
berknam d038bc4
Merge branch 'master' into remapRefactor_PoC
J-Fields a41276e
Fix code reviews
berknam ff2f924
Prevent double updateView calls
berknam f71aced
Merge branch 'master' into remapRefactor_PoC
J-Fields File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed because the actions that must be first key can't come after an operator and since I'm resetting the commandList on
modeHandler
runAction
function thecommandWithoutCountPrefix
might still have the same length so we need to check if there is no operator.