Sublime Forum

Is there a way to set a limit on the number of completion suggestions provided?

#1

I have been googling this pretty heavily and haven’t found an answer. I have seen that you can disable “word completion” but I often like these words, and don’t wish to disable this.

I don’t think there is a way to set a “number-of-suggestions-to-show-max-limit”.

What I was thinking might be possible, is to write a plugin listener to autocomplete? Then, take the completions that were generated, and just slice the first 5. (I only want 5 suggestions)

Another thing I was thinking, is maybe there is a way to limit the size of the pop-up to maybe 250px? The rest of the completions, you would have to scroll to see.

Thank you for the help!

0 Likes

#2

I don’t believe there is a way to do this, no.

A plugin doesn’t help here because a completions plugin doesn’t get the list of completions from other sources, it can only add its own to the list.

Similarly, the theme engine doesn’t allow you to change the size of the AC popup like that (as far as I am aware).

I believe generally you’re just meant to use the fuzzy filter to narrow the list as appropriate.

0 Likes