Home Download Buy Blog Forum Support

User defined completion disables internal completion

User defined completion disables internal completion

Postby ask on Mon Sep 19, 2011 8:44 pm

Greetings everyone!
I want to have simple file name completion, so i wrote it in a few lines

Code: Select all
class FileCompletion(sublime_plugin.EventListener):
    def on_query_completions(self, view, prefix, locations):
        ...some code here...
        return ((x, x) for x in suggestions)

If completion list is big enough, it disables internal 'word from buffer' completion,
so i see only my function's suggestions.

Any ideas how to solve this strange behavior (for me) ?
ps: of coure I want to see all completions together
Posts: 26
Joined: Wed Sep 14, 2011 12:40 pm

Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests