When doing a text search in Sublime Text, is there a way to only show the filenames that matched, and not show the actual lines that matched and the context around those lines?
I can go through each file and collapse those lines (mouseover the column between the line number in the first column and filename in the third column, reveal an arrow icon, click that arrow icon) -- is there a way to easily collapse all of them?
Sublime Text 2, v2.0.1, build 2217
Use the Search all shortcut: Ctrl + Shift + F , then select the folder in the "Where:" box below. (And for Mac, it's ⌘ + Shift + F ).
Sublime Text has really good multiple selection support. Here's another way: select all 50 lines (with the mouse, maybe?) then press cmd+shift+right or shift+End, as above, and collapse it.
Ctrl + F, then search for some class or whatever you want in opened docs, or entire site.
I had been wondering about this myself, but apparently the answer was simple. Use code folding.
Go to the menu Edit > Code Folding > Fold All. The keyboard shortcut on Mac is ⌘K, then ⌘1
Apparently it doesn't work too well—some results stay unfolded, both in ST2 and ST3—but it's something.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With