I have hundreds of Mathematica notebooks accumulated over the years, and I'd like to search over them.
I've been using various versions of text search (grep, SilverSearcher, Spotlight), but there are limitations. For instance, just now I needed to find where I have used the utility function toc. Searching for text string toc[ doesn't work because the raw text in .nb is RowBox[{"toc", "["
Older versions of Mathematica offered to install notebook indexing plug-in for Spotlight, but I no longer get this option.
Any suggestions?
NotebookImportcan import notebooks as plain text, that might be a start. – C. E. Sep 04 '20 at 18:00CreateSearchIndexer/TextSearchapproach doesn't seem to work. I have just triedTextSearch[index, "toc[" ]and it returns all the files that contain "toc[" and all the files that contain only "toc" without possible distinction. – andre314 Sep 04 '20 at 19:33