Peekmo / atom-autocomplete-php

Autocomplete for PHP in atom editor
MIT License
136 stars 34 forks source link

Improve the ranking/results in autocomplete. #319

Open wlkns opened 7 years ago

wlkns commented 7 years ago

I primarily use this plugin for the inclusion of dependencies as I'm typing, scenario: I type User then it adds the use App\User statement. The problem is, when I type user I'm overwhelmed with irrelevant functions, sometimes 100's...

image 2017-01-25 at 11 34 29 am

The only way I can think of alleviating this would be to make this search case insensitive, and also improve the matching algorythm e.g. GuzzleHttp\Psr7\mimetype_fromextension comes up for User before the class does.... I don't actually see the point of this result coming up because if I wanted a guzzle module I'd type either Guzzle or `mimetype`... not User... :/

Maybe I'm missing something here, but it seems like a definite problem.

prolific commented 7 years ago

this happens a lot to me too. Even after writing half of the path i don't get proper suggestions. It would be great if this feature can be improved.

Also auto import of classes with a certain key shortcut could largely improve this feature.