4 ms·
I actually like that the preferences are stored in JSON. This is one of the features that pulled me in to Sublime Text.
by alexshenoy 13y ago
I actually like that the preferences are stored in JSON. This is one of the features that pulled me in to Sublime Text.
- itsbits 13y agoi agree..its easier to edit
- FuzzyDunlop 13y agoI'd love it if they were stored in dotfiles (something I like about Textmate 2), but at least all your config gets stored in a nice User package.
- account_taken 13y ago+1 Actually, things are stored in a few directories. It took a while to figure out where Sublime stores everything so I could write a dotfiles script for it. Having to set things up through Package Manager is a pain. Not sure why that's the first step whenever I read an article on Sublime. A simple package file script that git clones/pulls plugins is more maintainable.
- nuclear_eclipse 13y agoI keep my ST2 package manager config stored in my dotfiles repo, so setting up a new Sublime instance is as easy as just opening ST2 for the first time and letting the package manager fetch the appropriate plugins automatically.
- account_taken 13y agoWhat bootstraps package manager?
- nuclear_eclipse 13y agoSorry, I keep that whole plugin as part of my dotfile repo. When the plugin upgrades itself, I just commit that upgrade. When I install my dotfile repo on a new machine, I have a script that symlinks everything to the repo, including my ST2 data. I then have my .gitignore set up to ignore all the plugins that get installed, but specifically track changes to the package manager plugin, as well as any other custom plugins I write for myself.
- WickyNilliams 13y agoMy bash-fu isn't great, can you point me at an example of a script which does this (yours or someone else's)? I was literally thinking about moving my ST2 config into my dotfiles repo the other day
- nuclear_eclipse 13y agoI actually use a bit of python to do this, but I've dropped that and my .gitignore into a gist. Enjoy! https://gist.github.com/jreese/5356501 https://gist.github.com/jreese/5356501
- WickyNilliams 13y agoMuch appreciated.
- account_taken 13y agoI just wish Sublime didn't have a mine of its own. It has a bad habit of rewriting my config with my comments removed.
- lobster_johnson 13y agoThe only time Sublime rewrites configs is when you change the theme. Maybe you have plugins that do it?
- stormbrew 13y agoI wish it was yaml. Even the slightly relaxed json (comments!) is still too picky for my taste.
- lobster_johnson 13y agoI think TOML [1] would be even more suitable. [1] https://github.com/mojombo/toml https://github.com/mojombo/toml