Sublime Forum

[SOLVED] INHIBIT_WORD_COMPLETIONS vs INHIBIT_EXPLICIT_COMPLETIONS

#1

Does anyone know the difference between
sublime.INHIBIT_WORD_COMPLETIONS
and
sublime.INHIBIT_EXPLICIT_COMPLETIONS ?

 
The unofficial documentation only has the note:
XXX What does this do?
for
sublime.INHIBIT_EXPLICIT_COMPLETIONS

0 Likes

#2

sublime.INHIBIT_WORD_COMPLETIONS - don’t suggest words that are in the document

i.e. you have a document containing

hello world
I am a document

and you type h and bring up auto-complete, without this flag set, it will suggest hello


sublime.INHIBIT_EXPLICIT_COMPLETIONS - don’t suggest entries from sublime-completions files - i.e. only show what is returned from on_query_completions

1 Like

#3

I was gonna create a pull request, but I see someone else already has, just nobody has bothered merging it yet: https://github.com/guillermooo/sublime-undocs/pull/184

1 Like

#4

You should still contribute, I think your explanation is more precise.  :+1:

Otherwise they’ll read:
Prevents Sublime Text from adding its word completions
&
Prevents adding completions from completion files

which is pretty vague…

1 Like

#5

lol it was a 30 second explanation I made from my phone while eating breakfast :smiley: but still better than the existing pull request :stuck_out_tongue: I might try to improve my wording more for my pull request :wink:

0 Likes

#6

pull request made

2 Likes

#7

 
Awesome.  Leaves no room for confusion :+1:

1 Like