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

Custom Builder

by sneakypete81 ALL

Sublime Text plugin to launch customisable build commands

Details

Installs

  • Total 964
  • Win 579
  • Mac 179
  • Linux 206
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 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28
Windows 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 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 1 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 1 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Text Custom Builder

Sublime Text plugin to launch customisable build commands. Easily select the command you need each time you build.

Installation

Install using Package Control:

  • Open the Sublime Text Command Palette
  • Select Package Control: Install Package
  • Select Custom Builder

Usage

Create a build system file. To run the Custom Builder for all Python files, use:

{
   "target": "custom_builder_prompt",
   "selector": "source.python"
}

Now open a file, bring up the Command Palette and type Build. This should display the Custom Builder selector.

Press Enter to create a new command, and type the command to run. To create a command to display your current network configuration, type c:\Windows\System32\ipconfig.exe.

Now give it a name and press Enter.

That's it, you should see the command output appear in the Output Pane.

Now when you bring up the Custom Builder selector you will see the new command at the top of the list.

Editing Commands

You can edit your existing commands by opening the Custom Builder.sublime-settings file in your Packages/User folder:

{
    "commands":
    [
        {
            "command": "c:\\Windows\\system32\\ipconfig.exe",
            "title": "IPConfig"
        }
    ]
}

Build System Variables

You can use any of the Build System Features in your build system files.

Unfortunately Build System Variables ($file_path, $project, etc.) are not expanded properly by default. To use these in your commands, pass them through in the cmd argument:

{
   "target": "custom_builder_prompt",
   "selector": "source.python",
   "cmd": {"file": "$file"},
   "shell": true
}

You can then use the variable in your Custom Builder command:

path\to\build_tool $file