Last Updated: January 12, 2018
· kevinsuttle
Kevin suttle

Sublime Text 2: Open files from search results

When you search across a project using Find in Files, Sublime Text 2 returns a list of search results in an editor tab, delimited by filenames. Double-click on the file name to be taken to that opened file.

For example, in the search results below, Picture

Double-clicking on the first file name search result (shown here in yellow in my editor),
will open the jekyll executable, where the 1st search result was found.


Likewise, if I had double-clicked on the 2nd file name search result, I would have been taken to env.rb.

Say Thanks

4 Responses
Add your response

0 z3 74lwjphyc9taus8cy4qogl8e7qnxus5br4bw2m6yxire2qfp nfjgxshkbpy8mgtlchbn529f

Yeah ok for this, that's cool.
I am searching a way to open all the file listed by the result.
I have 4000 XML files, and searching all files having a specific node with its attr/value pairs ...
The result of that search is less than 200 files. I need to open all these files to make another search into « open file » :) and search again to cross results between them...

over 1 year ago ·

essebé, I'm trying to do the exact same thing. It's quite a pain!

over 1 year ago ·

Also, for those wondering, you do not have to double click on the filename. If you double click on the highlighted area (the term you searched for) it will take you to that occurrence within the file. That way you don't have to jump around :)

I would very much like to know how to open all files, though.

over 1 year ago ·

For any other sorry soul that finds this post, in Sublime Text 3 (unsure if it works in Sublime Text 2), hold down the F4 key from the Search Results screen, and it will "Navigate to next match" - which causes it to open each file listed in the results.

Kind of a workaround, but saves a bunch of time double clicking each entry.

over 1 year ago ·