atom / fuzzy-finder

Find and open files quickly
MIT License
276 stars 129 forks source link

Support PHP Namespaces (Ignore Backlashes) #91

Open dbpolito opened 9 years ago

dbpolito commented 9 years ago

At PHP, the folder representation is a backlash, so a PHP Class:

Illuminate\Database\Eloquent\Model will be at folder Illuminate/Database/Eloquent/Model.php.

I think we should ignore backlashes or replace \with /, as i never saw any file using \ on it.

If i search for Illuminate/Database/Eloquent/Model or IlluminateDatabaseEloquentModel works just fine, so either way works, ignoring or replacing.

dbpolito commented 9 years ago

I just saw https://github.com/atom/fuzzy-finder/pull/51, which is basically the same thing, but rails uses :: instead of \.

jesseleite commented 9 years ago

I have exact same problem. Model.php should really be near the top of the list by just searching for Model, but fuzzy finder doesn't even show this file in the result set unless more info is given.

Example Screencast

Maybe related to scoring as well? See... https://github.com/atom/fuzzy-finder/issues/57