Here is my Preferences.sublime-settings
file:
{
"bold_folder_labels": true,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"remember_open_files": true,
"folders":
[
{
"file_exclude_patterns": ["*.sublime-workspace"]
}
]
}
When I search all of my open files and folders in the sidebar (cmd-shift-f) I still get search results including workspace files which live in one of the directories which I have open. For instance, if I have ~/foo
open and there's a file ~/foo/bar/hello.sublime-workspace
, it gets included in the search results.
How do I get Sublime to never include .sublime-workspace
files in my searches?
According to the comments here it looks like you have two possible solutions:
-*.sublime-workspace
"folders"
section, add "binary_file_patterns": ["*.sublime-workspace"]
Edit
Actually, you may just need to specify a "path"
for your "file_exclude_patterns"
:
"folders":
[
{
"path": "./",
"file_exclude_patterns": [".sublime-workspace"]
}
]
From http://www.sublimetext.com/docs/2/projects.html:
Each folder must have a path, and may optionally have a folder_exclude_patterns and file_exclude_patterns setting.
You can add a filter by appending ",-*.sublime-workspace" to your directory next to Where:
For example, set Where to
<project>,-*.sublime-workspace
to search all your project directories, or
c:\mydir,-*.sublime-workspace
to search a specific directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With