zed icon indicating copy to clipboard operation
zed copied to clipboard

Workspace project order is not preserved

Open eth0net opened this issue 1 year ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

When adding multiple project folders to a workspace they are added to the bottom of the list, but on workspace restart they are automatically organised alphabetically.

This is illogical to me and I'd like to see the order of projects in the workspace preserved, especially since I'd also like to be able to manually reorder them, like in other IDEs.

Environment

Zed: v0.132.2 (Zed Preview) OS: macOS 14.4.1 Memory: 64 GiB Architecture: x86_64

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

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

eth0net avatar Apr 23 '24 08:04 eth0net

I forgot to report this before, thanks for doing this!

Moshyfawn avatar Apr 23 '24 16:04 Moshyfawn

Closed by https://github.com/zed-industries/zed/pull/11504 , manual worktree roots organization comes with Zed 0.138

SomeoneToIgnore avatar May 24 '24 09:05 SomeoneToIgnore

Hi there, I’m encountering this issue on 0.149.6. The behaviour is inconsistent and I get a different order each time I start Zed. How can I help reproduce this issue?

Edit: It appears I only get two different orderings after each restart: one time my custom ordering, then what appears to be alphabetical, then mine again, etc.

mdarse avatar Aug 28 '24 11:08 mdarse

So I've tested this over and over to be as sure as I can, but it looks like workspaces from before the more recent fixes have this issue. I recreated a workspace I saw this issue with and the issue is gone now. Not an ideal fix but it seems fine with new workspaces.

eth0net avatar Sep 09 '24 12:09 eth0net

Ok, I did recreate my workspace (on 0.151.2). The issue is still present. By the way, just closing the window and opening a new window is sufficient to reproduce the A/B sorting.

Also, manually sorted directories seem to keep their relative ordering (but not in the right place).

mdarse avatar Sep 10 '24 14:09 mdarse