Brackets IDE plugin. Adds support of shortcuts for execution of terminal commands right from the IDE.
Find the configuration under command-line-shortcuts.commands in your preferences file.
Example configuration
[
{
"name": "Build whole project",
"cmd": "grunt",
"shortcut": "Ctrl-Shift-B",
"autohide": true
},
{
"name": "Run unit tests",
"dir": "$PROJECT_ROOT",
"cmd": "grunt test",
"shortcut": "Ctrl-Alt-B",
"autohide": true
},
{
"name": "Update the source",
"dir": "$PROJECT_ROOT",
"cmd": "git pull",
"shortcut": "Ctrl-Shift-P",
"autohide": true
},
{
"name": "Display contents of the currently selected file",
"dir": "$SELECTED_ITEM_DIR",
"cmd": "cat $SELECTED_ITEM",
"shortcut": "Ctrl-Alt-C"
}
]
namename of the configuration entry, optionaldirspecifies the directory in which the command should be run, requiredcmdthe actual command, requiredshortcutthe keyboard shortcut that will activate the command, requiredautohidewhether the feedback panel with the command output should be hidden automatically, optional
$PROJECT_ROOT is a special variable that denotes the root directory of the currently open project. This way when opening multiple projects in a sequence the shortcuts will be applicable for each project provided that the configured commands can be run in the root of each open project.
If no dir field is specified it is assumed to be $PROJECT_ROOT.
In order for changes to be applied just reload Brackets.
The following variables can be used in the configuration as values for dir and cmd:
$PROJECT_ROOTroot directory of the current project$SELECTED_ITEMpath to the file currently selected in the project$SELECTED_ITEM_DIRpath to the parent directory of the file currently selected in the project
After re-loading Brackets with the latest version of the configuration just use the shortcuts. In the example above
Ctrl-Shift-B will build the project and Ctrl-Shift-P will fetch the latest sources from its Git repository.
The plugin has been tested on Windows 8 and Ubuntu Linux.
Issues can be reported at https://github.com/antivanov/Brackets-Command-Line-Shortcuts/issues
MIT License (c) Anton Ivanov
The plugin was in part inspired by Brackets Builder