D11939: Prefer matches closer to the end of the path
noreply at phabricator.kde.org
Wed Apr 4 23:33:53 UTC 2018
mwolff created this revision.
Restricted Application added a subscriber: kdevelop-devel.
mwolff requested review of this revision.
Working on one codebase, I regularly fail to quickly find some
files I'm looking for because they use generic names that are also
part of the project path. We used to match from the start and
grouped all fuzzy matches together in the OtherMatch group, thus
the sort order for the following files is the same for the filter
strings "home", "sources" or "project":
Now, we sort the OtherMatches by how close we matched towards
the end of the path. Thus we split up the sort order for the three
paths and the corresponding three filter strings. We will now prefer
"something_home.cpp" for "home", "something_sources.cpp" for "sources"
and "something_project.cpp" for "project".
I could not see any noteworthy changes in the benchmark runtimes.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop-devel