Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Suggestion order #508

Closed
m1ga opened this issue Jun 21, 2015 · 8 comments
Closed

Suggestion order #508

m1ga opened this issue Jun 21, 2015 · 8 comments

Comments

@m1ga
Copy link

m1ga commented Jun 21, 2015

I have a variable called "transRotate" and when I type "transr" (or transR) it always puts "transform" as first suggestion:
Image

shouldn't be the second suggestion weighted higher because the character order is the one i've typed?

@zachthenerd169
Copy link

This is an issue with fuzzaldrin, the tool autocomplete-plus uses to provide fuzzy string matching. It looks like they almost have it working to add higher priority to exact substring matches atom/fuzzaldrin#19

@florianb
Copy link

I have the same issue in a ruby-file using the boolean-keyword and. Autocomplete prefers to suggest the snippet asnd first.

image

@jeancroy
Copy link
Contributor

snippets is a different issues. I believe the list of snippets is hard-coded to be on top.

@florianb
Copy link

Any hints where i should start searching? I guess its both, unusual to tweak the fuzz-priorities and not that easy to be done in a package.

@florianb
Copy link

@jeancroy i found the occurence in the language-ruby-on-rails-package. It seems not being treated special by the language-pack.

@jeancroy
Copy link
Contributor

Your issue is related to this one: #465
Eg every provider manage their own ordering, and we show all item of provider A, before any item of provider B

Original issue (transr) is related to the fuzzaldrin algorithm. A limited testing of an alternate algorithm is being done with fuzzy finder , see atom/fuzzaldrin#22

@florianb
Copy link

Thanks @jeancroy! 👍

@winstliu
Copy link
Contributor

fuzzaldrin-plus is now default.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants