jisaacks / ChainOfCommand

Sublime text plugin to run a chain of commands
67 stars 4 forks source link

Run command according to syntax. #2

Closed ctf0 closed 9 years ago

ctf0 commented 10 years ago

is it possible to add specific syntax like (html,css,etc..) to a command so the command only runs when the currently active file is that declared syntax?, like

{
  "keys": ["super+s"], 
  "command": "chain", 
  "args": {
    "commands": [
      ["save_all"]
    ],
    "scope": (source.html),
    "commands": [
      ["html_beautify"]
    ],
    "scope": (source.css, source.less),
    "commands": [
      ["css_comb"]
    ]
}