Home Download Buy Blog Forum Support

Make Settings Search File in Home Folder

Make Settings Search File in Home Folder

Postby mvnjpy on Sun Nov 18, 2012 10:21 am

Hi, I noticed the search paths for settings files for sublime is here:
http://www.sublimetext.com/docs/2/settings.html

I would like to request some way to specify settings via some file in a user's home folder.
I like to keep all my settings managed via a git dotfiles repo, so it's easier to share settings across machines (settings like .gitconfig or .ssh/config)

Would it be possible to have Sublime Text 2 (which is awesome) lookup some file int he home directory for settings? Maybe $HOME/.sublime-settings or something?

Thanks,
mvnjpy
 
Posts: 7
Joined: Sun Nov 18, 2012 10:19 am

Re: Make Settings Search File in Home Folder

Postby skuroda on Mon Nov 19, 2012 5:26 am

Is there any reason you don't want to create the a directory at your home, then just use a symlink to the appropriate location? Well I guess technically you would have to set up the link on every computer, but it should work as a temporary work around. I believe this is the method many users (including myself) use.
skuroda
 
Posts: 687
Joined: Fri Oct 05, 2012 8:11 am

Re: Make Settings Search File in Home Folder

Postby mvnjpy on Mon Nov 19, 2012 7:22 am

Yea, but it's a hack. This feature seems like an easy win. Doesn't seem obstrusive either. Is Sublime open source? I'm happy to contribute as well.
mvnjpy
 
Posts: 7
Joined: Sun Nov 18, 2012 10:19 am

Re: Make Settings Search File in Home Folder

Postby skuroda on Mon Nov 19, 2012 6:09 pm

Agreed, Sublime Text isn't an open source project. You could check (if you haven't already) http://sublimetext.userecho.com/, to see if anyone else wants it. If not, you can create it. The closest we can get is by developing plugins for Sublime Text. But from what I have learned in the handful of plugins I have written, checking an arbitrary location for configurations isn't possible. Though I could be wrong, hopefully someone else will come by to either confirm or refute this.
skuroda
 
Posts: 687
Joined: Fri Oct 05, 2012 8:11 am

Re: Make Settings Search File in Home Folder

Postby quodlibet on Mon Nov 19, 2012 11:05 pm

mvnjpy wrote:Yea, but it's a hack.


Not a big one.

As @skuroda implies, it's a common part of setting up a workflow with Sublime, especially if you move across computers and/or operating systems. Don't knock it 'till you've tried it :D

Alex
quodlibet
 
Posts: 553
Joined: Sat Jun 18, 2011 5:53 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 4 guests