The only thing on_query_completions
is asked for are candidates to possibly show. The handler can use prefix to limit amount of returned values. Fuzzy matching is not within scope of such a handler as several completion sources (plugins, sublime-completions, sublime-snippets) need to be queried and merged. That’s what core is dooing then. Number of matches which are finally displayed in completions panel has been limited in ST4 to maintain performance. You might need to hit ctrl+space
at some point to retrigger completions update.
That said, as a fuzzy noop, I still wonder how bex
matches beat
or bear
as none of them contains x
.