Improve sorting of Recent Projects #20324
Labels
admin read
Pending admin review
enhancement
[core label]
triage
Maintainer needs to classify the issue
Check for existing issues
Describe the feature
When searching through Recent Projects, the search appears to be recently used rather than potentially "best match".
For example, suppose I have two projects
Project 1 includes multiple folders
alpha
,beta
,gamma
Project 2 includes one folder
tam
.If I type in
tam
, Project 1 may appear above Project 2 because theta
inbeta
and them
ingamma
leads to a fuzzy match. But the behavior makes more sense to prioritizetam
above the othersI think that there are some intuitive sorting heuristics:
For eample, suppose there are 2 projects
Project 1 includes folders
alpha
,beta
,gamma
Project 2 includes folder
zebra
,wolf
If I type
al
, I get a match withal
inalpha
in Project 1. I also get a match with thea
in zebra and thel
in wolf in Project 2. Project 1 should be prioritized in this case since the match withalpha
is with the one folder rather than needing to be found across multiple foldersThere might be other good heuristics but none others come to mind immediately.
I'd like to take this on if there is agreement that this sorting is a good idea
Environment
Zed: v0.160.7 (Zed)
OS: macOS 14.4.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: