-1
Completat
Filename bias in Goto File/Anything string matching
Introduce a touch of filename bias in the code that produces the Goto File/Anything result lists, maybe with an even stronger bias for matches at the beginning of word parts in the filename.
If I type "app con" in the Goto File overlay, I get the following matches:
* priorities_controller.rb
* projects_controller.rb
* accounts_controller.rb
* application_controller.rb
* ...
The first three match because the path is .../app/controllers/..., but I think most people would like to see "application_controller.rb" at the top of the list if they type in "app con".
If I type "app con" in the Goto File overlay, I get the following matches:
* priorities_controller.rb
* projects_controller.rb
* accounts_controller.rb
* application_controller.rb
* ...
The first three match because the path is .../app/controllers/..., but I think most people would like to see "application_controller.rb" at the top of the list if they type in "app con".
Customer support service by UserEcho
The issue you're seeing is that there are many ways to match 'appcon' against 'app/controllers/application_controller.rb', and the ranking function is giving up before finding the best way. I'll increase the number of iterations it's willing to do before giving up, which will fix the problem on in this instance.
Many thanks for this report, by the way: In the test cases I've got here, the ranking gives better results than any other similar systems, and as much as possible, I'd like to keep it that way.
The expanded paths for the matches are as follow:
* ./db/migrate/20101012195957_add_netaxept_fields_to_accounts.rb
* ./vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/netaxept.rb.
I guess this might also be fixed by the change you mentioned in your earlier comment - I just thought I’d mention it.