-
Notifications
You must be signed in to change notification settings - Fork 264
Suggestions should favor case #651
Comments
Do you have an example where case sensitivity is not preserved ? |
I will try and grab a screen shot next time I see it or at least get the specific words |
Thank you for your report. Can you give us the package that generate those suggestions ? I believe it's not the default symbol provider. My guess is this is due because of #653 Here's the detail:
Some solution include
|
my atom config is here: https://gist.github.com/littlebee/34a60734de79f6f78c56 I'm not sure which packages provide autocomplete. I had ctags installed for a while but it made the autocomplete suggestions more convoluted, so I went back to autocomplete-plus. |
I'll investigate for the first example, can you try to see if disabling the the autocomplete-plus For the second one, snippet (green arrow) always come first. |
Not sure if this is the best thread but I'd like to give another suggestion for the autocomplete ordering. It would be best to order the autocomplete options by the number of characters matching. When there are multiple suggestions the shorter ones should come first. From screenshot above I'd prefer if This way one could maybe also control the ordering by re-assigning less used autocomplete options to a longer keyword. Maybe others have better suggestions on how to do this but it's just something that bugs me daily. |
@lenart that is a different issue that should be fixed in the 1.6.0 betas. |
Allright @50Wliu, thanks for clarifying. I've downloaded beta 1.6 and can confirm this has already been resolved. |
I can confirm this for the php-integrator-autocomplete-plus package as well. For example, if I provide class and function suggestions (in that order) and type I can switch the order of both providers, but this somehow doesn't feel right. There is no fuzzaldrin filtering happening in the providers (all the suggestions are returned and the filtering happens via |
…tions before classes. This seems to mitigate the problem with casing not being prioritized during fuzzy matching. See also [1]. [1] atom/autocomplete-plus#651
A typical pattern is to use CamelCase for classes and lowerCamelCase for variables. It would make my life at least 12% better if the top of the suggestions was the one that matched case. :)
(sorry, I don't see where to tag this as an ENHANCEMENT)
The text was updated successfully, but these errors were encountered: