Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not steal key binding in other scopes #7

Open
aziz opened this issue Jan 9, 2014 · 2 comments
Open

Do not steal key binding in other scopes #7

aziz opened this issue Jan 9, 2014 · 2 comments

Comments

@aziz
Copy link

aziz commented Jan 9, 2014

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
Copy link
Contributor

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
Copy link
Contributor

BarbzYHOOL commented Apr 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants