How to extend selection with search? #5668
-
I posted this originally on Reddit There is one major use case I really struggle with in Helix: As an example consider a long file with multiple section markers like this:
Let's say I just want to delete all of section Side note: Why does Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
This has been discussed in the Matrix chat here and there: it would be useful to have another form of search that behaves like Say that the binding for that was About the subreddit: the maintainers aren't affiliated with it. The Matrix channel and GitHub repo are the best way to get help from the community. |
Beta Was this translation helpful? Give feedback.
-
This isn't a perfect solution, but I've found the following useful: [keys.select]
n = ["extend_search_next", "merge_selections"]
N = ["extend_search_prev", "merge_selections"] That makes search work the way I'd expect in select mode as long as I only have one cursor. It can backfire if you have multiple cursors before you start the search, so a solution to #5672 would still be ideal. |
Beta Was this translation helpful? Give feedback.
-
Newcomer here. I expected Example:
|
Beta Was this translation helpful? Give feedback.
This has been discussed in the Matrix chat here and there: it would be useful to have another form of search that behaves like
t
orf
do. I posted #5672 with some design/implementation context to track that. The current select-mode behavior for search can be helpful to create multiple selections so I think this should be a new feature that doesn't touch the existing search.Say that the binding for that was
A-/
: you could search for the "4.7" with/4.7<ret>
, then extend the search withv<A-/>4.8<ret>
and then extend the whole selection to line bounds withX
.About the subreddit: the maintainers aren't affiliated with it. The Matrix channel and GitHub repo are the best way to get help from…