ishchenko / idea-navigate-from-literal

11 stars 11 forks source link

PHP: When matching, consider path as well and not file name only #10

Open bazzik opened 9 years ago

bazzik commented 9 years ago

PhpStorm v8.0.2 build 139.173; Plugin v1.8; Windows 7 x64 SP1;

PHP code:

$view->display('product/range', $data);

I have only one range file that is located in product folder and it is product/range.twig.

For some reason plugin offers more than one choice for me: screen01

Can we please have an option to have plugin to be more specific (consider not only last part, but the path as well)?

I don't really mind to see such list with other possible destinations.. but I would highly prefer to have more precise match on the top.

If there is such option already available then please point me to it.

P.S. If I add .twig into that string (e.g. $view->display('product/range.twig', $data);) then I will still see 3 options .. but more appropriate file will be first in list indeed.