Home Download Buy Blog Forum Support

dir_exclude_patterns not working

dir_exclude_patterns not working

Postby kakubei on Tue Oct 18, 2011 4:33 pm

Hello, is anyone having this problem: the dir_exclude_patterns seem to be ignored. This was working at one time but no more, no matter what I put in there, it shows me everything.

This is in build 2126

This is what I have in my project file:

Code: Select all
{
   "folders":
   [
      {
         "dir_exclude_patterns":
         [
            ".*",
            "*cover*",
            "*image*",
            "*ackup*",
            "frame*",
            "*oghouse*",
            "plex",
            "moderator",
            "api",
            "remote*",
            "local*",
            "automator*"
         ],
         "file_exclude_patterns":
         [
            ".git*",
            ".*",
            "Ple*",
            "optimizing*",
            "policy*",
            "jquery*",
            "php*",
            "triangle*",
            "authorized_keys"
         ],
         "path": "/correct_path_to_folder"
      }
   ]
}
kakubei
 
Posts: 58
Joined: Sun Sep 25, 2011 9:19 am

Re: dir_exclude_patterns not working

Postby jps on Wed Oct 19, 2011 11:02 pm

folder_exclude_patterns is the key you're after
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: dir_exclude_patterns not working

Postby kakubei on Thu Oct 20, 2011 6:21 am

jps wrote:folder_exclude_patterns is the key you're after

Thanks John, I could have sworn I read it was dir in the docs somewhere...
kakubei
 
Posts: 58
Joined: Sun Sep 25, 2011 9:19 am

Re: dir_exclude_patterns not working

Postby matias_p on Mon Oct 24, 2011 9:29 am

when I add a folder to a project that already contains a folder_exclude_patterns clause, the project file is regenerated (so far so good) and all instances of folder_exclude_patterns are replaced by dir_exclude_patterns, which is not honoured.

I am using version: 2133 windows x32 channel: dev
update: this is still the case in build 2134

Two features would nicely complement this:
  • regexp support (for instance: static directory excluded by both "static" and "st.tic")
  • expose the full path to the pattern so I can for instance exclude public/static while keeping application/static

First post. I have been trying out sublime for a couple of days and I must say the name is actually an understatement. It is beyond that. I have been coding for 15 years and it feels that I have at last found home. Registration will follow my next paycheck.
matias_p
 
Posts: 1
Joined: Mon Oct 24, 2011 9:22 am

Re: dir_exclude_patterns not working

Postby kakubei on Thu Nov 17, 2011 10:57 am

Similar for me, somehow (and I can't quite say how) my project preferences were overwritten with dir_ instead of folder_ and the unwanted folders came back. Took me a while to figure out it had changed.
kakubei
 
Posts: 58
Joined: Sun Sep 25, 2011 9:19 am

Re: dir_exclude_patterns not working

Postby jps on Thu Nov 17, 2011 10:04 pm

Thanks for the report, will fix for the next build.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 21 guests