MaciekBaron / sublime-list-less-vars

Simple Sublime 2/3 plugin for listing LESS variables used in a file and inserting them into the file
14 stars 6 forks source link

Do not steal key binding in other scopes #7

Open aziz opened 10 years ago

aziz commented 10 years ago

Define a more specefic keymap to prevent the command from running in any other scope but less files. it's just a best practice in ST plugin dev.

[
  {
    "keys": ["ctrl+alt+l"], "command": "list_less_variables", 
    "context": [{ 
      "key": "selector",
      "operator": "regex_contains", 
      "operand": "less" 
    }]
  }
]
BarbzYHOOL commented 5 years ago

ctrl+alt+l = switch session on linux

otherwise good idea, ty for opening this issue, i might add it for my own purpose (the operand thing)

BarbzYHOOL commented 5 years ago

Ok in fact I tested the above and it doesn't work (key is not doing anything)