cmd-caller
A Sublime Text 3 plugin to execute predefined commands conveniently.
Details
Installs
- Total 8K
- Win 8K
- Mac 316
- Linux 317
Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 1 | 3 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 3 | 3 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 0 | 0 | 2 | 2 | 1 | 1 | 1 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 3 | 1 | 3 | 0 | 0 | 2 | 0 | 2 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
Readme
- Source
- raw.githubusercontent.com
Cmd Caller
A Sublime Text 3 plugin to execute predefined commands conveniently.
Usage
Cmd Caller can execute a command instantly by pressing a hotkey(Default Action
, or open a list of avaliable commands to execute via another hotkey(App List
).
These commands should be predefined in the settings. Also, there are a few predefined commands in the default settings.
Thus, you are two steps away from the convenience of the plugin * Define commands: consult Settings below * Press hotkey: consult Key Bindings below
Also, Default Action
, App List
, Settings
and Key Bindings
are also available via Command Palette.
Key Bindings
By default, Cmd Caller binds Ctrl+Shift+X
to Default Action
, and Ctrl+Shift+,
to App List
.
Key Bindings are accessed via the Preferences
> Package settings
> Cmd Caller
menu.
Settings
Settings are accessed via the Preferences
> Package settings
> Cmd Caller
menu.
default
{
"default": "KEY_TO_APP"
}
"KEY_TO_APP"
should be set to the key of app that Default Action
will call.
apps
Apps are predefined commands.
{
"apps": {
"KEY": {
"name": "DISPLAY_NAME",
"cmd": "COMMAND_TO_EXECUTE"
},
"KEY2": {
"name": "DISPLAY_NAME2",
"cmd": "COMMAND2"
},
}
}
Following variables in "cmd"
will be expanded.
variable | example | note |
---|---|---|
${file} |
/home/esphas/cmd-caller/src/commands.py |
current edited file, full path |
${file_name} |
commands.py |
current file name: basename.extname |
${file_base_name} |
commands |
current file basename |
${file_extension} |
py |
current file extension name |
${file_path} |
/home/esphas/cmd-caller/src/ |
current working directory, full path |
${folder} |
/home/esphas/cmd-caller * |
current added folder in project, full path |
${project_base_name} |
cc ** |
current project name |
* about projects, consult Projects
** granted that the project file is /some/directory/cc.sublime-project
Installation
Package Control
- Start Sublime Text
- Install Package Control
- Open the Command Palette and choose
Package Control: Install Package
- Search for
cmd-caller
and select to install
Manual Installation
- Start Sublime Text
- Open package folder via the
Preferences
>Browse Packages...
menu - Execute git clone:
git clone https://github.com/esphas/cmd-caller.git
Compatibility
This plugin is tested campatible with windows(Windows 10 1703 Build 15063
) and linux(Ubuntu 16.04.2 LTS
).
No commands(apps) are predefined for osx, although the plugin should not face compatibility problems with osx.
Issues
If you find errors in the plugin, please run Show Logs
command via Command Palette or Preferences
> Package settings
> Cmd Caller
menu, and open a new issue with the log file content.
The Show Last Logs
command is for logs in last sublime session.