0
on_query_context passes in None in the view
This may be related to http://sublimetext.userecho.com/topic/21146-key-binding-context-to-only-react-on-eg-python-code/
class GetFileType(sublime_plugin.EventListener):
def on_query_context(self, view, key, operator, operand, match_all):
# view is none at this point
0
glyph 13 years ago
There are contexts where the view *should* be None, although it seems like they aren't being queried now. See http://www.sublimetext.userecho.com/topic/87730-on_query_context-not-invoked-for-bindings-outside-of-a-view/
Maybe it would be better to have a different method for these "limbo" keybindings?
Customer support service by UserEcho