Home Download Buy Blog Forum Support

Factory settings vs. User Over-rides? Multiple Data Dirs?

Factory settings vs. User Over-rides? Multiple Data Dirs?

Postby Judah on Tue Aug 09, 2011 1:21 am

Is there any way to have Sublime use multiple locations for the Data directory?

We would like to put sublime and our plugins into our version control system so that people can get plugin updates as we make them. Unfortunately, if we do this, the user data that generally resides in the Documents and Settings, or User directory, now must reside in our version control tree. Also, this means we can't really provide key bindings because that would force everyone to use the same setup.

After experimenting with the thumbdrive and standard version of Sublime, I think what we want is a hybrid that uses the thumbdrive version's Data directory as a starting point, and then the User directory to pull over-rides from.

Thanks,
-Judah
Judah
 
Posts: 3
Joined: Tue Aug 09, 2011 12:37 am

Re: Factory settings vs. User Over-rides? Multiple Data Dirs?

Postby jps on Tue Aug 09, 2011 1:47 am

You can create a single directory under Packages/, and put that into version control. Files such as "Base File.sublime-settings", "Default.sublime-keymap", etc, may be placed in any package - they get merged together.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Factory settings vs. User Over-rides? Multiple Data Dirs?

Postby Judah on Tue Aug 09, 2011 4:53 pm

Ok. I'll give that a try.

In order to load our existing python codebase we are using a sitecustomize file in the root of the Sublime directory for initialization. Is there any reason we should not do this?

Thanks agian,
-Judah
Judah
 
Posts: 3
Joined: Tue Aug 09, 2011 12:37 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 31 guests