Repository navigation
Implement operator pending mode and text objects - #183
Conversation
We were calling everything we could push to the op-stack an operator, which wasn't technically correct. For example, motions aren't operators. This uses the more general term "operation" instead.
This way we *never* call ::pushOperations with non-operational values.
|
Yeah! Lovin' it. Glad you decided to continue on the clarity train with |
This is awesome and really important in order to make this vim-mode not merely a thin key binding shim. It does not have to be a full vim port but having real composability of verbs/adjectives/objects is the key. |
Conflicts: lib/operators.coffee lib/vim-state.coffee
There was a problem hiding this comment.
These should also work in visual mode. Guess I need a test for that.
|
Merging this. This is the hard part of the diff, and it will be impossible to keep it up to date with master. New text objects can be added cleanly in another pull. @nathansobo ❤️ |
Implement operator pending mode and text objects
|
so is this in a state now where we just need to add the keybindings manually for |
|
#286 implements those. It will land 🔜 |
Implement operator pending mode and text objects
🚈 In progress 🚈
This PR adds operator pending mode. It also refactors how commands are registered and how operations are pushed and processed.
i wa wi sanda s)i panda p)i "etc)i (etc)iiandai)Closes #177