Sublime Forum

Project searches excluded folders

#1

For some reason, my project searches folders excluded with any of these settings:

“binary_file_patterns”: [“node_modules”]
“folder_exclude_patterns”: [“node_modules”]

I get immediate feedback that these settings are at least partially working, because

“binary_file_patterns” causes the folder tree to appear as a different colour:

and “folder_exclude_patterns” removes the folder from the tree. I’d post a picture as evidence but as a new user I’m limited to one image per post.

And yet, in both cases, the folder contents still show up in searches. It’s such a pain that I’m considering dropping Sublime entirely. Is this a bug? Am I doing something wrong?

0 Likes

#2

What does your search “Where” field contain?

1 Like

#3

The where: /Users/[REDACTED]/Documents/projects/project-root/client
The project config file:
{ "folders": [ { "path": "/Users/[REDACTED]/Documents/projects/project-root", "folder_exclude_patterns": ["node_modules"] } ] }

0 Likes

#4

Hi! Any update?

0 Likes

#5

The “Where” field and project filter rules are currently exclusive. That is to say, it you specify a “Where” clause, it ignores your project filters. If you leave the “Where” field empty, it uses your project filters.

0 Likes