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
  • 10 years ago
  • 2 weeks ago
  • 12 years ago

Installs

  • Total 2K
  • Win 874
  • Mac 555
  • Linux 374
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 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
Windows 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0
Mac 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 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 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 1 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
    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.