Home Download Buy Blog Forum Support

What's the equivalent of application settings in S2?

Re: What's the equivalent of application settings in S2?

Postby guillermooo on Wed Jun 29, 2011 1:22 pm

Seems to be missing in the API, but you could do this maybe:

Code: Select all
s = sublime.load_settings("Global.sublime-settings")
s.set('do_laundry_for_me', True)
sublime.save_settings("Global.sublime-settings")
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: What's the equivalent of application settings in S2?

Postby n00ge on Fri Jul 01, 2011 1:21 pm

Wait... So who's doing my laundry?
http://twitter.com/n00ge
Sublime Text 3 dev builds | OS X 10.8.2 & Ubuntu 13.04
n00ge
 
Posts: 140
Joined: Mon Oct 05, 2009 1:23 am

Re: What's the equivalent of application settings in S2?

Postby guillermooo on Fri Jul 01, 2011 2:15 pm

I'm afraid behavior in that case is undefined. :D
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am


Return to Plugin Development

Who is online

Users browsing this forum: Google [Bot] and 3 guests