noklesta / SublimeQuickFileCreator

Quick File Creator plugin for Sublime Text
64 stars 26 forks source link

excluded_dir_patterns not working. #11

Closed goerwin closed 8 years ago

goerwin commented 8 years ago

I'm adding this setting in my preferences.sublime-settings file:

"excluded_dir_patterns": [
  "tmp",
  "|.git",
  "|.svn",
  "node_modules"
]

But the node_modules folder is still being included in the contextual menu. I've tried node_modules.*, .*node_modules.*, etc. and not working.

twolfson commented 8 years ago

Based on these lines, it looks like you need to set that under a SublimeQuickFileCreator key (meaning the README is wrong):

https://github.com/noklesta/SublimeQuickFileCreator/blob/df7b03cc2320fcf75888e34a628982f5284db97f/SublimeQuickFileCreator.py#L38-L44

{
  "SublimeQuickFileCreator": {
    "excluded_dir_patterns": [
      "tmp", "|.git", "|.svn"
    ]
  }
}
goerwin commented 8 years ago

Thank you @twolfson, that was it!

twolfson commented 8 years ago

@erwingaitano Do you think you could open a PR to fix it? I'm currently not in a good spot to do it and I'm sure @noklesta would appreciate it =)

goerwin commented 8 years ago

No problem, I made a PR https://github.com/noklesta/SublimeQuickFileCreator/pull/12