When performing an all-tabs search, a lot of results from ".map" files (or hidden tabs?) are displayed, sometimes far more than from the actual tabs. How do I turn this distracting feature off? Also, when replacing in a global search, I can't find the command to replace only the next instance of the string. It only lets me replace all strings found.
Hi @protovtol.
You can filter which files will be searched:
- Click the βββ icon at the right side of the Search panel below the search query field.
A "files to include" and a "files to exclude" field will appear in the Search panel. - Add the filter expressions to the fields.
In this specific case, you can exclude.mapfiles from the search by adding*.mapto the "files to exclude" field.
Alternatively, you can set persistent per-sketch filtering by adding a file named .ignore to the sketch.
- Start any text editor.
- Create a new file in the text editor.
- Add the following text to the file:
β The supported syntax is that of Git's*.map.gitignorefile. - Save the file in the folder of the sketch you wish to configure, with the filename
.ignore.
Make sure the file is named exactly .ignore, not something like.ignore.txt
You can enable and disable search filtering according to the .ignore file by clicking the icon that looks like a stylized eye at the right side of the the search query field in Arduino IDE's Search panel.
- Hover the mouser pointer over the search result you wish to replace.
Icons will appear to the right side of the search result. - Click the "Replace" icon to the right side of the search result.
That specific search result will be replaced, without affecting any of the other search results.
Hi @ptillisch - Thank you so much for your detailed help.
-Bernie
You are welcome. I'm glad if I was able to be of assistance.
Regards, Per