Skip to main content
Inspiring
Dec 13, 2021 11:57 AM UTC
Answered

Find and replace inside a folder but exclude files inside a specific sub-folder?

Is there a way to search an entire folder but exclude a specific sub-folder? Find and Replace inside the theme folder is very useful, and used to be quick. However I have started using webpack, which adds a huge node modules folder into my theme folder. This massively slows down Find and Replace if I search the entire theme folder, so being able to exclude node-modules from the search would be a big time saver.

This topic is closed to new replies. Start a new post to keep the conversation going.
Jon Fritz
Jon FritzCorrect answer
Community Expert
May 18, 2022 12:36 PM UTC

None that I know of, aside from possibly cloaking the individual files within the folder.

3 replies

Jon Fritz
Community Expert
Community Expert
Dec 13, 2021 2:47 PM UTC

To hide files from the F&R tool, you can cloak the folder temporarily.

Right click on the folder you don't want searched and choose Cloaking > Cloak. Run your search and it should ignore that folder entirely. Don't forget to Uncloak after you're done.

Translate
Inspiring
May 18, 2022 11:41 AM UTC

Hi, your solution (cloaking) was working until recently. In the last week Dreamweaver has started searching files even if inside my cloaked node modules folder. Is there any way to correct this?

Translate
Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
May 18, 2022 12:36 PM UTC

None that I know of, aside from possibly cloaking the individual files within the folder.

Translate