Sublime Forum

Refreshing Auto Completions

#1

Is there a way to do so? Say I have a TextCommand set to the character ‘(’. Gather up my completion data, and try to open it with the below when I type the character ‘(’.
view.run_command(‘auto_complete’, {
‘disable_auto_insert’: True,
‘api_completions_only’: True,
‘next_completion_if_showing’: False
})

Now under a normal situation, this would work. However, if Sublime already has it’s built-in auto-completion guesses pulled up when I type the ‘(’, the auto-completion menu sublime had given me is closed, but my own completions don’t show up/pull up a menu. The only solution I have for now is to hit escape before typing ‘(’ if sublime’s auto-completion menu is already open.

0 Likes

#2

have you tried running the hide_auto_complete command before the auto_complete command?

0 Likes

#3

I hadn’t, but it doesn’t seem to fix the problem

0 Likes