zed icon indicating copy to clipboard operation
zed copied to clipboard

Go to File sort order priority

Open bcardarella opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the feature

Currently Go to File favors history over exact match:

Screenshot 2024-05-16 at 5 02 22 PM

Some options users may want:

  • exact match - it would sort with the exact match of the file name to what is being searched first, in my screenshot I would expect mix.exs and mix.lock to sort higher than everything else
  • bag distance (Jaccard index) - sort by distance between overlapping sets. This may be the more natural options for some.
  • default: the current sorting method

If applicable, add mockups / screenshots to help present your vision of the feature

No response

bcardarella avatar May 17 '24 11:05 bcardarella

Yeah it makes sense that history plays a role. Just not at the expense of an exact match. Even if you would write the full mix.exs filename there it would not be enough to push that file to the top. Which feels strange.

JonGretar avatar May 18 '24 07:05 JonGretar

Linking this for the team:

  • https://github.com/zed-industries/zed/issues/7586

JosephTLyons avatar May 20 '24 02:05 JosephTLyons