PlatformSettings
A Sublime Text 2 plugin enabling platform specific settings
Details
Installs
- Total 2K
- Win 871
- Mac 553
- Linux 374
Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |
Mac | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Description
This is a Sublime Text 2 plugin enabling platform specific settings.
Installation
- The easiest way to install PlatformSettings is via the excellent Package Control Plugin
- See the Package Control Installation Instructions
- Once package control has been installed, bring up the command palette (cmd+shift+P or ctrl+shift+P)
- Type Install and select “Package Control: Install Package”
- Select PlatformSettings from the list. Package Control will keep it automatically updated for you
- If you don't want to use package control, you can manually install it
- Go to your packages directory and type:
- git clone https://github.com/quarnster/PlatformSettings
Usage
Add a key to your settings dictionary like the following:
"osx":
{
"font_size": 12.0
},
"linux":
{
"font_size": 10.0
},
"windows":
{
"font_size": 8.0
}
Each setting in the platform specific dictionary will be applied to your views if they are different from what is currently set.
You can also specify which keys you want to apply (and in what order) to your settings:
"platform_settings_keys": ["${platform}", "user_${platform}"]
This is the default setting, so if you are using OS X the dictionary with the name “osx” will be loaded and then updated with the settings from the dictionary with the name “user_osx” before being applied to your views.