atishay / vscode-allautocomplete

Autocomplete from open files for VSCode
MIT License
105 stars 25 forks source link

Fuzzy matching #56

Open betterthanclay opened 4 years ago

betterthanclay commented 4 years ago

Autocomplete only appears to work when there is an exact match - is there any way to enable fuzzy matching, like the functionality that already exists in most other IntelliSense suggestions?

eg. type mw match myWord

atishay commented 4 years ago

VSCode does not offer any prioritization ability outside of the sort text. We cannot have a say in the sort order of result. While we can supply a long list of matched text, the prioritization is on VSCode. Therefore fuzzy matching can make things more confusing. Will leave this open for more thoughts.

betterthanclay commented 4 years ago

Understood.

Potentially a minimum length setting would help improve the results whereby fuzzy matches only come into play once x number of characters have already been matched in a word. While it would ultimately be great to get fuzzy matches for any input, I tend to use it most (previously in Atom) in the following scenario -

Strings within a document:

eventTitle
eventUsername
eventPassword

Keyboard input: eveT matches eventTitle

This in combination with a global enable setting should allow people to tune this functionality to their liking without completely saturating the results with noise.