Been a user of Alfred for a long time, however whenever I search anything I get a lot of FUD results due to alfred also indexing all my web project node_modules directories.

Is there any way to path-match and exclude all results from within a /node_modules/ directory? This would greatly improve the utility of the search.

  • Look into using a script filter, which allows you to customise the results returned in the Alfred search box. But they’re also quite a ball ache to set up. – CJK Jan 25 '18 at 9:14

Go to Preferences -> Spotlight -> Privacy (TAB) Then add the folders you want to exclude to that list.

  • 1
    A couple things seem missing. How does this match paths for dozens or hundreds of folders? Are you saying Alfred only uses spotlight? – bmike Nov 30 '18 at 12:03

You can also add alfred:ignore to the spotlight comments of the folder that you want exclude, in your case the node_modules folder.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .