Sublime Forum

binary_file_patterns, exclude except

#1

I’m using binary_file_patterns to exclude the node_modules directory from the goto anything: "node_modules/**"

But I’d like to have the bootstrap directory included, I’ve tried with this: "!node_modules/bootstrap/*"

But didn’t work, any thoughts?

0 Likes

#2
  1. Symlink the bootstrap outside the excluded pattern.
  2. See if there is this feature request on the core: https://github.com/SublimeTextIssues/Core/issues, if not, to perform one.
  3. Wait for more thoughts, may this feature is already on and I do not know about.
  4. Create a package which parses the node_modules folder excluding all the folders except those you want to. Example:
binary_file_patterns : ["node_modules/a/*", "node_modules/b/*", etc. but not exclude "node_modules/bootstrap/*" ]
3 Likes

#3

Thanks you! For now I’m going for option 1 and 3 :slightly_smiling: if it takes too long I’ll create an issue at option 2 :thumbsup:

1 Like