hexwla
Last Updated: January 12, 2018
·
4.346K
· kevinsuttle

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),
/Users/kevinsuttle/Github/jekyll/bin/jekyll:
will open the jekyll executable, where the 1st search result was found.

Picture

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

4 Responses
Add your response

13611

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 ·
13667

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

over 1 year ago ·
13668

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 ·
26271

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 ·