I’m trying to figure out clean and robust way to organize my Packages folder. Here it is:
(Folders are gives in upper case.)
PACKAGES
|
|-- USER
| |-- ...
|
|-- YY FOO
| |-- foo.py
| |-- foo.sublime-keymap
|
|-- YY BAR
| |-- bar.py
| |-- bar.sublime-keymap
|
|-- ZZ PREFERENCES
|-- PACKAGE PREFERENCES
| |-- BAZ
| | |-- baz.sublime-settings
| | |-- baz.sublime-keymap
| |
| |-- ZAB
| |-- zab.sublime-settings
| |-- zab.sublime-keymap
|
|-- preferences.sublime-settings
|-- default (your os).sublime-keymap
As you probably know, there are some problems with Packages and User folders:
- You can have unpacked packages in
Packagesfolder (e.g.Packages/Your Package/<files>), but eventually it will be cluttered with automatially created folders. So, it will be a mess, because it will not be easy to distinguish these automatically created folders (which doesn’t have any real value to you) from the packages you created by yourself. - The
Userfolder will be cluttered with automatically created files/folders even faster. - The preferences in your
Preferencesfile will be automatically reordered and comment lines will be removed (see issue 426). - Some packages which you see on GitHub doesn’t honor your
Preferencesfile and adds different garbage to it.
That’s why I decided to stop using default User folder and use zz Preferences instead. yy and zz prefixes gives me the correct loading order and easy way to distinguish my own packages from the automatically created folders.
Package Preferences is a folder to store settings for packed packages, e.g. View In Browser.
What you think about it?