Sublime Forum

Select Lines That Are Not Selected

#1

I’m currently experimenting with Todo.txt, and I want to select lines that do not contain @tags or +projects. I thought to highlight all lines with @ symbols and + symbols then wondered if there was a way to select the lines that are not selected. Does anyone know if this is built-in to Sublime Text or will I need to write something to make it happen? I’m slowly learning code. Would I have to write a regex?

0 Likes

#2

The menu command Selection > Invert Selection may do what you want here; as the name suggests it flips the selection so that anything that is selected is not selected and vice versa.

1 Like

#3

Thank you, @OdatNurd. Invert Selection is what I’m looking for. I was running into a problem using this at first, but I figured out I need to highlight selected lines along with a return for each line in order for it to select the lines I wanted.

0 Likes