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

Platform​Settings

by quarnster ST2/ST3

A Sublime Text 2 plugin enabling platform specific settings

Details

  • 2015.06.05.16.41.10
  • github.​com
  • 2 years ago
  • 2 hours ago
  • 5 years ago

Installs

  • Total 762
  • Win 354
  • OS X 264
  • Linux 144
Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5
Windows 0 0 0 2 0 0 2 0 0 0 1 1 1 0 0 0 0 1 2 1 0 0 2 1 3 0 2 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 0 1
OS X 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 2 0 0 2 0 0 1 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 1 0 1 1

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.