Reputation: 22835
I have opened a directory (not a saved project) in Sublime Text 3. Then, I right-clicked one of the subdirectories and selected Project -> Exclude From Index (mark as binary) "/path/to/my/subdirectory/**"
. It seems to be permanent.
I tried the following sequence:
The exclusion went away. Then I did the following:
The exclusion came back as well. How can I cancel the exclusion?
Upvotes: 0
Views: 168
Reputation: 22831
That command isn't part of core Sublime, it's provided by the SideBarEnhancements package. The name of the command in the menu is misleading; it doesn't do what it says it does.
It looks like it's saying that it will exclude that file from the index for the current project, but in fact excluding files from the index is accomplished via the binary_file_patterns
setting:
// These files will still show up in the side bar, but won't be included in
// Goto Anything or Find in Files
"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],
This setting is a global setting that can't currently be set on a project by project basis, so despite the name of the command, it's really excluding that path from every project or Sublime window, not just from the one you run the command in.
In order to undo what it's doing, you need to open your user preferences by selecting Preferences > Settings
(Sublime Text > Preferences > Settings
if you are on MacOS) from the menu.
This will open a new window with the default settings on the left and your custom setting on the right. In the right side pane you can modify the binary_file_patterns
setting to remove the path that you added in order to have it indexed again.
Upvotes: 2