Repository navigation
Operator pending - #152
Operator pending#152jroes wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
There's a lot of duplication here...could we rephrase the regular vim-mode list as not(.operator-pending)?
There was a problem hiding this comment.
Yeah, I hate the duplication too. I'm not sure if I can do that though. If by regular vim-mode you mean command-mode, once I start doing that things disappear from command-mode, because they aren't necessarily exclusive. They kind of mean something different in each mode. Maybe I can do two comma-separated selectors though...
There was a problem hiding this comment.
Tried doing something like this:
'.vim-mode.command-mode:not(.mini), .vim-mode.operator-pending-mode:not(.mini)':
'w': 'vim-mode:move-to-next-word'
'e': 'vim-mode:move-to-end-of-word'
'b': 'vim-mode:move-to-previous-word'
'x': 'vim-mode:delete'
'd': 'vim-mode:delete'
'c': 'vim-mode:change'
...
But I don't think it's working. Is it possible this multiple selector format isn't supported by atom core?
|
@jroes I think we're on the right track here. There's a bit more refactoring to do but nice work so far. |
|
@jroes I still think this is useful. |
|
I think I may take a stab at reimplementing this rather than catching this up with master. I may change my mind. Either way I'll be sure to credit you in the change log and reference this PR. |
|
@nathansobo totally good with me. sorry I haven't had a chance to devote more time to it! |
|
@nathansobo @jroes are you cool with closing this out in favor of #183? |
This is a rough implementation of
operator-pendingmode, with some explanation and discussion in #58 and #129.Based on discussion in #129, this doesn't seem like it's the correct long-term solution to the problem.
All tests pass in this PR except for two new tests that came after I put in the original work for this mode that I haven't had a chance to look at --