Sublime Forum

How to display my datas to the auto_completition popup

#1

i want to invoke auto_complete command,but i don’t know how to display my datas to the popup

import sublime, sublime_plugin

class Masm32AutoComplete(sublime_plugin.TextCommand):

def run(self, edit, block=False):
    self.view.run_command("auto_complete")
    
def return_completions(self, comp, view):
    return comp
0 Likes

#2

I’m not sure what this means(?). If you want to create completions that appear in the auto-complete list then you could either create a completions file (sublime-completions) or create a plug-in (.py) using the on_query_completions event. I think there are such files for PHP and HTML that you could examine.

0 Likes

#3

[quote=“agibsonsw”]

I’m not sure what this means(?). If you want to create completions that appear in the auto-complete list then you could either create a completions file (sublime-completions) or create a plug-in (.py) using the on_query_completions event. I think there are such files for PHP and HTML that you could examine.[/quote]

thank you!!!

0 Likes