Run Apps
Run or launch external applications, system commands, customized scripts from command pallete. Just like "!xxx" in VIM.
Details
Installs
- Total 2K
- Win 2K
- Mac 311
- Linux 419
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 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Run applications - Sublime Text
Run any customized application from command palette. Just Ctrl/Command+Shift+P, input Run: XXX
, that's it!
Installation Instructions
Package Installer
- Install Sublime Package Control
- Select “Package Control: Install Package” from the Command Palette (
super/ctrl+shift+p
) - Find “Run Apps” and select
Git clone * Enter directory through “Browse Packages…” in Sublime Text “Preferences” * Run
```
git clone https://github.com/liuhewei/run-app-sublime.git
```
Usage
Firstly, add applications through: “Tools” -> “Run Apps” -> “Add Application”.
Each application follows:
{
"caption": "Run: Git", // Run: <App-name>, shown in command pallete
"command": "runapp", // cannot be changed
"args":{
// application full path on Win/Linux, or only name on MAC
"app": "",
// argument list
// variables can be use: $DIR$, $FILE$, $PROJ$
"args": [""],
// optional: define what should follow the command
// default is None
// "dir" - file directory, same as $DIR$
// "file" - file name, same as $FILE$
// "proj" - project directory, same as $PROJ$
"type": "",
// optional: command line application or not
// default is false
"cli": true
// optional: send in selected text as input or not
// default is false
"input": true
}
}
Take “Git bash on windows” as an example for GUI-app, the original command is:
C:/Windows/system32/wscript "D:/Tools/Git/Git Bash.vbs" <directory>
{
"caption": "Run: Git",
"command": "runapp",
"args":{
"app": "C:\\Windows\\system32\\wscript",
"args": ["D:\\Tools\\Git\\Git Bash.vbs"],
"type": "proj"
}
}
Take “git status .” as an example for CLI-app, the original command is:
D:\Tools\Git\mingw64\bin\git.exe status .
Under current file's directory.
{
"caption": "Run: Git-status",
"command": "runapp",
"args":{
"app": "D:\\Tools\\Git\\mingw64\\bin\\git.exe",
"args": ["status", "."],
"type": "dir",
"cli": true
}
}
Take “go doc ” as an example for CLI-app with input, the original command is:
D:\Tools\Go\bin\go.exe doc fmt.Println
Under selected text fmt.Println
{
"caption": "Run: Godoc",
"command": "runapp",
"args":{
"app": "D:\\Tools\\Go\\bin\\go.exe",
"args": ["doc"],
"input": true,
"cli": true
}
}