Is it possible to prevent spotlight from indexing all folders with a specific name?
As a developer I encounter folders like "node modules" that should never be indexed. I don't want to add this folder to the non-indexed list in system-preferences > spotlight > privacy for every single project manually and have to manage that. My current solution is to prevent Spotlight from indexing everything inside my development folder.
Is there a way to tell spotlight to not index any folder with a specific name like "node-modules"? Perhaps a terminal command or with Applescript (does Applescript even exist anymore?)
MacBook