Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text folder_exclude_patterns stopped working

Tags:

sublimetext2

I have this in my myapp.sublime-project file in the root of my project.

{
    "folders":
    [
        {
      "path": ".",
      "folder_exclude_patterns": ["log", "tmp"],
      "file_exclude_patterns": ["*.sublime-workspace"]
        }
    ],
  "settings":
  {
    "tab_size": 2
  }
}

Previously this was working (for example log/development.log would be exluded in search results). But somehow it stopped working a week or two ago and I can't figure out why.

Any ideas on how to debug this is or is this syntax still correct in the latest sublime? Thanks!

like image 313
Brian Armstrong Avatar asked Jan 07 '13 21:01

Brian Armstrong


2 Answers

If you open your project with subl . from command line as I often do:

# project_folder> subl .

These settings are getting ignored. As a workaround I use Project menu and use one of Open Recent or Quick Switch Project. Then, settings in sublime-project file are getting applied. Yes, weird indeed.

I've asked about this to the forum: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=14129

like image 152
SelimOber Avatar answered Sep 17 '22 18:09

SelimOber


I had to do both, simultaneously, of @Chengjian and @Case's answers:

  1. Close the project.
  2. delete the .sublime-workspace file.
  3. Reopen.
like image 31
Scott Stafford Avatar answered Sep 18 '22 18:09

Scott Stafford