zed icon indicating copy to clipboard operation
zed copied to clipboard

command palette entries should be sorted by recency not usage

Open hferreiro opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the feature

This would match VSCode behavior, not sure about other editors. I understand there's no behavior that would satisfy everybody, but this would at least help with a common use case: running the same command repeatedly.

I guess one option would be to keep the usage count ordering only when filtering, if https://github.com/zed-industries/zed/issues/8106 is fixed.

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

No response

hferreiro avatar Feb 21 '24 07:02 hferreiro

LRU or MRU ?

0x2CA avatar Feb 21 '24 10:02 0x2CA

As commented on the description of the use case, sorting the most recently used commands first seems sensible (I think naming it LRU/MRU can be confusing for a list that doesn't need to have a limited number of entries).

hferreiro avatar Feb 21 '24 11:02 hferreiro