Sublime Forum

Project Include Folder Globbing

#1

I’m having trouble getting pattern globbing to work with my project settings when using folder_include_patterns … ].

For example - I have a project “Sublime Preferences.sublime-project”.

    "folders":
    
        {
            "file_exclude_patterns":
            
                "dotfiles-sublime.sublime-workspace"
            ],
            "folder_include_patterns":
            
                **...**
            ],
            "follow_symlinks": true,
            "path": "." // $HOME/Library/Application Support/Sublime Text 3
        }
    ]
}

The sublime directory has lots of stuff in it, but I really only want to see a very limited subset of the files - specifically all the files in the Packages/User directory (and a couple others). I’ve tried lots of different syntaxes for this, but none seem to work:

                "Packages/User",
                "Packages*",
                "Packages/**/",
                [etc]

Any ideas if this is supported and how it might be configured?
Note: I have additional directories under my User directory that I would also like to include.
Note: I’m using an include pattern rather than an exclude pattern because I know what files I want to see - and I don’t want to have to reconfigure the exclusions everytime a package renames a file or installs something new.

1 Like