Home Download Buy Blog Forum Support

incremental find and multiple selections

incremental find and multiple selections

Postby gregor.hoch on Mon Dec 03, 2012 5:05 pm

Hi, it would be nice if incremental find works with multiple selections. Below is an example (| indicates the caret). In this case, I want to select all the the first & in each line. How can I do this in a easy and quick way. Regular expression would work. Incremental find with multiple selections, however, would be a nice solution. In the example, an incremental find for & just selects the next & for each selection. Wouldn't that make sense?

|this is some text & 8.2 & \
|this is other text and much more & 1.5 & \
|this & 5.4 & \
|this is & 2.5 & \
|this is some & 1.4 & \
gregor.hoch
 
Posts: 144
Joined: Sat Oct 01, 2011 7:54 pm

Re: incremental find and multiple selections

Postby bronson on Tue Dec 04, 2012 1:22 am

Enable Vintage mode, make your selections, then hit 'Esc f &'.

I don't know of any way of doing it inside Sublime proper.
bronson
 
Posts: 38
Joined: Wed Nov 28, 2012 8:52 pm

Re: incremental find and multiple selections

Postby bizoo on Tue Dec 04, 2012 8:51 am

This plugin, despite it's not exactly what you want, is really helpful for this:
viewtopic.php?f=5&t=9581
You can use it to move you carets before & and select them using standard ST command.
bizoo
 
Posts: 883
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 26 guests