Sublime Forum

Convert Find to Selection

#1

I would frequently like to copy all lines containing particular text (or delete all lines matching a regexp).

This could be done in Sublime with the addition of a feature that converted the current Find matches into actual selections. Then I could perform “Expand Selection to Line” and delete or copy as desired.

I’m so surprised that this feature doesn’t exist, I wonder if it really does and I’ve somehow missed it.

0 Likes

#2

‘Find All’ on the find panel will do this, as will Alt+F3.

0 Likes

#3

Sweet loving, thank you!

0 Likes

#4

I conceived the UberSelection plugin to address similar but more involved cases:

bitbucket.org/guillermooo/uberselection/src

It has some glitches, but you may want to give it a try.

0 Likes