Sublime Forum

Disable default word completion

#1

Hallo,
I have developed a custom auto completion which worked fine so far. Now I have growing files (200mb) and recognize that the autocompletion popup delays more and more. The reason is the default word completion of sublime I guess. I was able remove the word completion from the completion list with the sublime.INHIBIT_WORD_COMPLETIONS. But sublime still seems to extract all words from the buffer. Is there a way to avoid that via a setting, e.g. “supress_word_completions” : true ?

Cheers, Sebastian

0 Likes

#2

For me, using the AllAutoComplete plugin, what worked for me was to change its minimum character length to six. So six-character words are the shortest ones I’ll see in the autocomplete popups.

Have no idea if this helps or applies, but it’s what I thought of.

0 Likes

#3

thank you, thats an idea. Unfortunately I also need autocompletions for words shorter than 6 chars. A possibility to avoid the “word in buffer”-completion would be the best

0 Likes

#4

I really think this is an important use case: i am working on very big files, up to one gb. Sublime is perfectly able to let me edit this files, search in this files and goto symbols from these files also works great.
I also need my custom autocompletion. I don’t want and I am not able to create my own autocompletion suggestion lists and integrate them in sublime. The solution would be dirty.
I want to use the autocompletion of sublime. However, the default word completion is not needed and it is definetly the cause for the huge delay after triggering autocompletion (6 seconds with an over average machine). I guess every split of words in a big file would take this time. So: Sublime is a great, but still commercial tool. How can I get rid of buffer splitting when autocompletion is triggered. And by the way: why is it impossible to use the autocompletion component via the sublime api. show_quick_panel() is by far not that strong.

0 Likes