-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Relative exclusive scope should skip containing #2110
Conversation
I think both today's behaviour and your proposed behaviour are useful. And I think both can be equally surprising. It would be quite surprising to pop out of a "curly" you can't see when you say "next curly" Why don't we support both as separate modifiers? You can map it to "next", and I'll map it to "skip", eg "skip funk", "skip second funk", etc If we find the other is more often useful, and less often surprising, we can change default spoken form Make sense? |
I'm fine with having two separate modifiers, but I do think having one canonical way of numbering the scopes and then using the same logic for two scopes and next scope is much easier for the users to grasp. I feel myself that I don't really know what Cursorless will use when I issue these different commands. Should we make a brand new modifier or just add an additional parameter to the modifier? We could also make it a private setting and try it out? |
I think there may also be something interaction with |
yes I'd make it private. Not sure bout new modifier vs param. One thing to keep in mind: the impl is very very close to |
Implementation wise it might be that, but its still most definitely relative exclusive since we have offset 1? |
yes but keeping it as part of the same impl might be beneficial as it ensures the semantics is exactly the same |
We can always make utility function for that part |
Closed in favor of #2133 |
This frequently bites me.
"two states"
refers to the if statement and the second print statement, but"next state"
refers to the first print statement. This change makes it so it skips containing and refers to the second one instead.Checklist