-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Proposal] Extend till next selection #11524
Comments
Sounds like "select till" rather than extend. Could you also mention the use cases you talked about? |
Example: converting
to
Process:
I cannot find another way to do this with multiple cursors. A macro that does this process with a single cursor will not work properly with multiple cursors. If there was a variant of An |
Something like this would depend on resolving the latter part of #2298 (comment). This also sounds like it is a duplicate of #5672 |
Well, my proposal doesn't really create adjacent selections, so I don't understand what you mean by the linked comment. The original selections will not end up selected and will therefore be between any of the resulting selections. Also, this was just one example of usage. I can think of other uses than the multicursor search problem. Not sure how it's a duplicate. |
Can you elaborate and actually give the example that could not be solved by multicursor search? |
Any situation where you have a list of header-body type structures and you want to alter the bodies with information from the heads. Or when you want to change between editing delimiters to editing values in a list. But I think my provided example is enough. I'm sure many things could be solved with multicursor search, but I don't think that being the "only" solution to a given situation should be the sole cutoff criterion to whether a proposal is considered or not. After all, anything could be solved with just regex substitutions and I just wanted to know if this is something people would find useful, to maybe work on a PR. And if not, what are your perceived downsides, to inform future suggestions. |
What it says on the tin. A motion to be used with multiple cursors that will extend the selection until the next cursor.
So that this (brackets are selections)
becomes this:
Would be handy for a couple of use cases that currently require macros.
The text was updated successfully, but these errors were encountered: