Sublime Forum

Api call for checking context

#1

In a keymap I can do the following:

[code]{ “keys”: “…”], “command”: “…”, “context”:

	{ "key": "...", "operator": "...", "operand": ... }
]

},[/code]

I’m wondering is there a way to check context through the api call? Something like view.check_context(…])? If there isn’t, is it planned to add such functionality? It could be really helpful for writing plugins.

0 Likes