-
-
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 commands [WIP] #234
Merged
Merged
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
83afbcf
Begin command refactor.
johnfn 13fdd4c
Add the remaining keys.
johnfn f160a86
Passing most tests.
johnfn 49b8a2f
Finish up normal mode rewrite.
johnfn 7675cb6
Refactor actions to return positions.
johnfn bf5c42e
Refactor Normal & Visual mode to use same actions
johnfn 7d15fff
Rewrite modes to take Actions, not key presses.
johnfn ee15155
Make operators inherit from a common base class.
johnfn 409822f
Track action state in ModeHandler and write core processing fn.
johnfn a6d01bd
Remove a bunch of stuff.
johnfn c6db2d5
Respect modes for actions.
johnfn 0b52969
Make all state transitions into Actions.
johnfn 06ae75f
Clean up, fix <esc>.
johnfn 3f2df04
Add x/X actions.
johnfn e0eb20c
Handle a lot of weird edge cases.
johnfn 97c615c
Add a special case JUST for de.
johnfn 8fe79c9
Add C.
johnfn b87a41a
Shove everything in one massive class.
johnfn f6d90dd
Fix cw.
johnfn bc8d0fe
Fix cW as well.
johnfn 5bde23c
Pass all [operator][motion] normal mode tests!
johnfn c3683f0
Begin adding/rewriting visual mode tests.
johnfn 8a6c826
Fix all visual mode tests!
johnfn 0fce025
Fix a bug with deleting in Visual Mode.
johnfn da30a64
Fix gg, and refactor some logic along the way.
johnfn e84f583
Add test for gg.
johnfn beef8a6
Refactor a lot of deletes to use DeleteOperator.
johnfn 87a3d99
Make DeleteOperator inclusive/exclusive.
johnfn 8019bbe
Remove an unused function.
johnfn 4b43b73
Fix off-by-one in reverse ranges.
johnfn a9476af
Add VimState, keep track of desired column again.
johnfn 35eefbe
Clean up desiredColumn and add test.
johnfn 4982f4b
Nest ActionState within VimState.
johnfn 1114f9b
Nest ActionState within VimState and return VimState from actions.
johnfn 9e055d6
Don't pass ActionState, only VimState.
johnfn a6c2144
Refactor the 'ready to run' logic.
johnfn af00ab7
Fix dl at end of line and add test.
johnfn b7ecb56
Add commands like $ force desiredColumn to EOL.
johnfn 00cad54
Handle the returned VimState in a unified way.
johnfn 7410857
Simplify logic.
johnfn f9fed66
Update mode via VimState.
johnfn f837304
Remove unnecessary parameter.
johnfn 0f3fa9e
Remove handleDeactivation, which caused weird bugs.
johnfn e905f40
Stop passing in modeHandler to actions.
johnfn 0fc8e94
Add a bunch of commands.
johnfn efc6133
Add 2 more commands back.
johnfn 37a6abb
Add x operator in visual mode.
johnfn 1a0cbb9
Add yank and put back.
johnfn e0e6974
Add text object and remove concept of inclusive/exclusive motions.
johnfn b662bad
Totally remove position options.
johnfn 85b6d8c
Text objects work with d/c/y!!
johnfn 88f2e57
Add iw text object.
johnfn 3143f14
Fix an 'aw' bug.
johnfn d320241
Make "aw" motion work and pass tests.
johnfn cab7dd4
Fix iw motion.
johnfn 668dfa1
Add put test and pass all tests.
johnfn 3ce1c28
Fix all tslint errors.
johnfn 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
Add a bunch of commands.
- Loading branch information
commit 0fc8e9486fcdc7a67bf6b000e4aa1fc6922d4786
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
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.
Oohh! neat, didn't know TS/JS had this.
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.
Yeah, it's really snazzy. Unfortunately I'm running into some annoying bugs where depending on compile order things might not work, so I might have to remove it...