Skip to main content
Inspiring
December 13, 2021
解決済み

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

  • December 13, 2021
  • 返信数 1.
  • 611 ビュー

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.

このトピックへの返信は締め切られました。
解決に役立った回答 Jon Fritz

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

返信数 1

Jon Fritz
Community Expert
Community Expert
December 13, 2021

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.

Inspiring
May 18, 2022

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?

Jon Fritz
Community Expert
Jon FritzCommunity Expert解決!
Community Expert
May 18, 2022

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