I’m trying to write a keybinding that will only happen if the current context is a string, but this doesn’t work:
[code]{ “keys”: “ctrl+’”], “command”: “toggle_quotes”, “context”:
{ "key": "selector", "operator": "regex_contains", "operand": "string"}
]
}[/code]
Even stranger is that a “match everything” regex doesn’t even work:
[code]{ “keys”: “ctrl+’”], “command”: “toggle_quotes”, “context”:
{ "key": "selector", "operator": "regex_contains", "operand": ".*"}
]
}[/code]
What am I doing wrong here?