How do I search across all open files?


#1

Is there a way to search across all files open in Atom?


#2

From this cheatsheet http://sweetme.at/2014/03/10/atom-editor-cheat-sheet/#atom_find_replace I found Cmd + Shift + f to do just that.


#3

I realize this is making a zombie thread, but the question wasn’t really answered correctly. “Find String in All Project Files” is not the same “Find Across All Open Files”, as open files may not all be a part of the same project.


#4

Yep, I’m adding to a 18 month old thread, but this is the first Google hit for how to search open files in Atom.
I have not found the answer to this question otherwise so I am hoping that someone can answer it for me and all the others that must see this.
I do not want to search across a project. I only want to search all the files that are currently opened in the editor. This is such a common need and is available in most editors. I must be missing something obvious.
How?


#5

There is an open Issue for this here:


#6

Thanks for pointing me in the right direction.


#7

Looks like Atom now comes loaded with the package “fuzzy-finder” which you activate with “cmd + t”. If not … of course you can install “fuzzy-finder”

Thanks


#8

Try doing ctrl+t. It worked perfectly for me and it searches all the projects for your search term.


#9

ctrl-shift-F on windows

command-shift-F on mac


#10

There are two workarounds so far in that old issue:

But no real solution so far


#11

Currently I use the open-files package which lists the open files above the tree-view panel. There are other like packages but I have not tested them.
Perhaps one of the package authors can be persuaded to dump a list of open files then a regex script can be applied to find and replace in open tabs. I use ripgrep for searching files instead of the Atom default find and replace.