ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Platform​Settings

by quarnster ALL

A Sublime Text 2 plugin enabling platform specific settings

Details

  • 2015.06.05.16.41.10
  • github.​com
  • 9 years ago
  • 58 minutes ago
  • 12 years ago

Installs

  • Total 2K
  • Win 852
  • Mac 523
  • Linux 363
May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6
Windows 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 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0
Mac 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
Linux 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 1 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
    1. See the Package Control Installation Instructions
    2. Once package control has been installed, bring up the command palette (cmd+shift+P or ctrl+shift+P)
    3. Type Install and select “Package Control: Install Package”
    4. 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
    1. Go to your packages directory and type:
    2. 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.