Looking at some other plugins (github.com/Zinggi/DictionaryAut … omplete.py, see def on_query_completions), to add to the auto complete list is to add words like:
def on_query_completions(self, view):
autocomplete_list = "word1", "word2"]
return autocomplete_list # Returns words to use in auto-complete.
When a file is opened normally, autocomplete_list is filled by some amount of parsing. A function like generate_autocomplete_list_for_current_file()
will be being called.
I’m wondering whether from plugins; we have access to a function like generate_autocomplete_list_for_file(filename/filebuffer)
, so to not have to re-write the parsing.