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

Build Switcher

by vojtajina ST2

A plugin for Sublime Text 2, so easily switch between build systems.

Details

  • 2013.12.10.07.44.43
  • github.​com
  • github.​com
  • 10 years ago
  • 43 minutes ago
  • 12 years ago

Installs

  • Total 1K
  • Win 560
  • Mac 374
  • Linux 253
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 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11
Windows 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 0 0 0 0 0
Mac 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 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 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

BuildSwitcher (Sublime Text 2 plugin)

Do you have multiple build systems per project ? This plugin will help you quickly execute the one you want.

Instalation

Recommended way is using PackageControll package.

Or you can download the tarball and extract it to your ~/Library/Application Support/Sublime Text 2/Packages/BuildSwitcher.

Configuration

There is currently no way to get list of available build systems in Sublime, so you need to explicitly specify the ones you wanna list. Just add into your XXX.sublime-project something like this:

{
    "settings": {
        "build_switcher_systems": [
            "Unit tests",
            "CoffeeScript",
            ["My unit tests", "c:\\builds\\UI_tests.sublime-build"],
            ["My CoffeeScript", "/Users/me/build/coffee.sublime-build"]
        ]
    }
}

You can provide either build name only or custom name and build file path.

If you don't specify any build system, BuildSwitcher will just execute the currently selected build (the same behavior as Sublime's default super+b shortcut).

If you specify only one build system, it will execute it without asking.

If you specify multiple systems, you always get a pop up with options (sorted by usage).

Build variants can be specified by separating them from the build name using a pound sign “#.

So configuring:

“build_switcher_systems”: [“Make”, “Make#Install”, [“MyMake#Install”, “/Users/me/make.sublime-build”]]

and then choosing “Make#Install” will trigger the Make build system in the “Install” variant.

Defining key shortcut

By default, “build_switcher” is mapped to CMD+B, however you can easily change that, just add to your keymap preferences:

{ "keys": ["super+b"], "command": "build_switcher" }