Search for keywords across all files in a project?

686 views
Skip to first unread message

Chris Sutton

unread,
Jun 10, 2021, 2:27:25 AM6/10/21
to Google Apps Script Community
Hello. I must be doing something stupid as I cannot work out how to search for text across *all* files in my Google Sheet project in the IDE. 

I have a lot of files as that is how I manage my code. I want to inspect everywhere where I used a do while loop but I cannot work out how to search for "while" across all files at once. I seem only to be able to do this in the current script file. What am I doing wrong?

Thanks in advance, CJ

Andrew Roberts

unread,
Jun 10, 2021, 4:52:07 AM6/10/21
to google-apps-sc...@googlegroups.com
That's right. You can't search across all files - another limitation in the new IDE.

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/a34338e5-8e4d-4704-9684-d1baf6824972n%40googlegroups.com.

frank 6000

unread,
Jun 10, 2021, 5:15:26 AM6/10/21
to google-apps-sc...@googlegroups.com
This is currently a missing feature in the new IDE - the workaround that I use is to:

Temporarily revert back to the old IDE, press Ctrl- F to invoke find and carry out a cross-project search.

Once found, revert back to new IDE.

Good luck

--

Chris Sutton

unread,
Jun 10, 2021, 7:25:14 AM6/10/21
to Google Apps Script Community
Thanks to you both for your quick responses and suggested workaround. I am glad I am not going crazy. 

I am going to guess I cannot rearrange my files in the IDE either other than through the very limited and clunky "Move up" and "Move Down" which does not scale if you have more than a few files!

CJ

Andrew Roberts

unread,
Jun 10, 2021, 10:17:42 AM6/10/21
to google-apps-sc...@googlegroups.com
Afraid not. Personally I'm sticking with the old IDE at the moment.

dimud...@gmail.com

unread,
Jun 10, 2021, 12:53:17 PM6/10/21
to Google Apps Script Community
While you can't do global keyword searches anymore, you can find references for functions, classes and variables across multiple files. Just select a function or class and right-click to bring up the context menu, then select 'Go To References'.

Wilson Galter

unread,
Jun 10, 2021, 2:09:04 PM6/10/21
to Google Apps Script Community
I have also reverted to the old version to search across multiple files.
There are many uses for the FIND dialog box in the old IDE.
Say I have files that are not named in any logical manor and I need to find out where I placed the function in the javascript file referenced in red below.
google.script.run.withSuccessHandler(msgcloseRegister).closeRegisterGS(fieldData);

in the old IDE I would simply highlight or type the function name anywhere in the IDE and find the file containing the function, variable, word or even numbers.

Screenshot 2021-06-10 150525.jpg
Can't do that in the new IDE
I hope that gets added on later.

Alan Wells

unread,
Jun 10, 2021, 2:57:40 PM6/10/21
to Google Apps Script Community
The "legacy" code editor would sometimes get what seems to be memory overload errors in the browser.  So, I'm wondering if the legacy editor puts more content into the browser, or memory, which allows it to search all files.  I'm just making a wild guess.  The reason why I'm interested in this, is because I've worked on an editor for Apps Script and this is a feature that I personally want to have.  I stopped working on my code editor, and haven't gotten back to it.  Another thing that the legacy editor does, is save old versions of every inner file.  Which is sometimes indispensable.  But, that too would require using up more memory, and storage.  Google probably wants to decrease the load on memory and storage, although I don't know if they care or not.

MrGreggles

unread,
Jan 13, 2022, 12:03:52 AM1/13/22
to Google Apps Script Community
Returning after several months away from Appscript and it appears that "search all project files" still hasn't been implemented, which is honestly just nuts. I don't even want to go back to the old editor just for that as I was, because I ended up getting the content/file name of two or more files swapped. Maybe I hadn't saved them before going back to the old IDE but it was messy pain in the butt. 

Come on devs, surely the need for this functionality is pretty apparent.

Eric Babin

unread,
Feb 15, 2022, 2:52:00 PM2/15/22
to Google Apps Script Community
Does anyone know if it's possible to search for keywords across all script projects?
The dashboard only seems to allow searching for project names.
Isn't Google a "Search" company. Sorry... THE "Search" company. Shouldn't this functionality be embedded in the DNA of all their products? "Search first" approach.
My apologies if I sound frustrated but I'm making a change to a standalone library which has functions used an a number of Sheets.
I can't search which sheets actually use the functions that I'm changing and the IDE doesn't have a way to see where all external references are.
This means I have to open each script project, one at a time, and search each file. That's a fun afternoon.
Devs! Please add this functionality.

Thanks for any suggestions

 *** CONFIDENTIALITY NOTICE *** This communication, along with any documents, files or attachments, is intended only for the use of the addressee and may contain privileged and confidential information. The intended recipient shall not further distribute the information transmitted in this Email unless authorized by law or the subject of the information transmitted. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of any information contained in or attached to this communication is strictly prohibited. If you have received this message in error, please notify the sender immediately and destroy the original communication and its attachments without reading, printing or saving in any manner.

Jorge Pucci

unread,
Oct 20, 2022, 11:54:49 AM10/20/22
to Google Apps Script Community
Reply all
Reply to author
Forward
0 new messages