Sublime Forum

Permanently exclude files from 'find in files' search

#1

Hi

Unless I’m wrong it is currently not possible to exclude files permanently from search.

It’s possible to do this per search in the ‘where’ field, like this: ‘c:/users/user/project, -excluded_file.js’.

It seems like using a .sublime-project file excludes not listed files from search. That is nice.

But file_exclude_patterns don’t influence search. So files inside shown folders are all included in search, although they are excluded from the project.

My folders include browserified and minified files. They pollute search results.

Thanks for this great product.

Alex

1 Like

#2

This problem still persists in build 3152. Is there a way to permanently declare patterns to exclude files/folders from search results?

folder_exclude_patterns in the project settings and binary_file_patterns in the user settings don’t seem to affect the Find in Folders function. Results from folders which are perfectly hidden from my sidebar are returned.


Edit: Apparently, one can use <project> in the Where field and then the exclude_patterns are respected.

1 Like