Dear all,
I’m starting a plugin for ST2 which suggests code completion when hitting the colon ‘:’ key. I keep on finding examples using on_query_completions, however this method is not included in the API reference, and this code never gets triggered on the colon key, but only on other keys:
class TestCompletions(sublime_plugin.EventListener):
def on_query_completions(self, view, prefix, locations):
print 'ok'
return 'hello']
Can some kind soul explain to me where is the starting point in building such a plugin? BTW, I never see the ‘hello’ suggestion.
Thank you,
r.