Sublime Forum

Tab completion shouldn't display a dropdown when there is exactly one 100% match

#1

Tab completion shouldn’t display a dropdown when there is exactly one 100% match. It should complete immediately on Tab. Example:

image

Here, I’d like “february” to be completed immediately on Tab. Instead, I got distracted to look at the dropdown just because there is a veeeeeeeeeeeery fuzzy match that is “fiber”.

I solved this for myself personally with the setting "auto_complete_preserve_order": "strict" after some searching, trial and error, but I spent a lot of time, and I think this is not intuitive at all. Instead, the behavior I propose should be the default.


  • My build number is 4200
  • My settings are default regarding the completion feature.
0 Likes

#2

Tab completion immediately commits a single completion item without dispalying a popup, already. But that’s not the case in provided screenshots. Fuzzy logic picked up two tokens from text buffer or any open view, both of which are valid to some degree. The logic is however unable to know which one you want to complete until computers get direct neural links. Thus it has to ask. The thing with fuzzy is, it being fuzzy. It may or may not match our expectations.

1 Like

#3

“until computers get direct neural links”, Nuclear fusion is 30 years away xD

0 Likes