Right now when I use ⌘+O to search for files, the fuzzy matching appears to operate over all files in the current project. Unfortunately, this includes
Hi you need to find settings and add a new exclude pattern for history files
I wanted to search for the term "Stripe" in all files except those within a plugin ("plugin" folder) or within the files ending in ".bak", ".bak2" or ".log" (this is within the wp-contents folder structure of a wordpress install).
I just wanted to do this search one time and very quickly, so I didn't want to alter the search settings of my environment. Here's how I did it (note the double asteriks for the folder):
Here's what it looked like
If you have multiple folders in your workspace, set up the search.exclude
on each folder. There's a drop-down next to WORKSPACE SETTINGS
.
Folder Settings Tab
I wanted to exclude 1 of the Workspace folders completely, but found this to be difficult, since regardless of the exclusion patterns, it always runs the search on each of the Workspace folders.
In the end, the solution was to add **
to the Folder Settings search exclusion patterns.
The short answer is to comma-separate the folders you want to ignore in "files to exclude".
babel,concat
to exclude the folder "babel" and the folder "concat" in the search (make sure the exclude button is enabled).Exclude all from subfolders works like this (version 2019)
include
./db
exclude
./db/*