Sublime text plugin to run a chain of commands
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information. Add another example to read me Jan 26, 2014 Initial Commit Jan 26, 2014

Chain of Command

Sublime text plugin to run a chain of commands


To run a chain of commands you run the chain window commands and pass it a list of commands to run. Each command is defined as a list where the first argument is the name of the command to run and any additional arguments will be passed directly to the command.

For example, to run the select_all command and then run the copy command you would call:


Or if you wanted to focus the first group in a window:


The point is to be able to build custom key bindings to run a sequence of commands. Lets say you wanted a key binding to duplicate the current file. You could set this key binding:

  "keys": ["super+shift+option+d"], 
  "command": "chain", 
  "args": {
    "commands": [

This would select all the text, copy it, create a new file, paste the text, then open the save file dialog.