Sublime Forum

Confused by the Goto File search pattern [SOLVED in 2112]

#1

Hi

I’ve seen a couple of feature requests for the Goto box, but I can’t decide if this one is a bug or designed to work this way…

I have a large Java project (Alfresco) with many different types of files (java, css, html, xml, js, etc.) and the goto box search pattern matching seems to be giving too much weight to individual characters within the entire path, rather than heavily weighting the filenames themselves. Here’s an example:

It might not be obvious from the screenshot, but I’ve typed in “recordmodelxml” and had to scroll down a dozen or so entries before “recordsModel.xml” appears in the results pane. My confusion is why the “ecor” part of the filename hasn’t been matched at all (according to the highlighting) but seemingly random parts of paths have been matched.

Is there any way to give more weighting to the filename instead of path elements?

Thanks,
Mike

0 Likes

#2

Are you using 2111 or the latest dev build?

0 Likes

#3

Ah ha! Thanks for the pointer - just spotted the note in Build 2112 and indeed the results are much better with 2118.

Many thanks Jon :smile:
Mike

0 Likes