Sublime Forum

Glob patterns for project file exclusion/inclusion

#1

We use npm to collect a bunch of plugins together into one project. It includes both our own plugins and a boat load of others. I want to exclude all these other plugins from being searched.
I tried both folder exclude and include patterns:
"folder_exclude_patterns": [ "node_modules/twa-**", ],
which removes all my plugin, so I tried to negate it:
"folder_exclude_patterns": [ "!node_modules/twa-**", ],

Is there a way I can filter out all node_modules, that don’t start with ‘twa-’? Everything inside these node_modules should show as well (meaning all folders and files)

0 Likes

#2

only by either explicitly specifying all folders you want to be included (folder_include_patterns), or all folders you don’t want to be included (folder_exclude_patterns). ST’s glob handling is non-standard and extremely limited.

0 Likes