zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
43.98k stars 2.36k forks source link

Ability to collapse all top-level folders in project panel #11760

Open mikesun opened 3 months ago

mikesun commented 3 months ago

Check for existing issues

Describe the feature

The current project panel: collapse all entries function will only collapse folders of children of top-level folders but doesn't collapse all top-level folders, which is different from how Collapse Folders in Explorer works in VScode. VScode's behavior is useful because I often have many top-level folders in the project panel.

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

Zed

Screenshot 2024-05-13 at 12 30 39 PM

VSCode

Screenshot 2024-05-13 at 12 29 02 PM
alxhghs commented 3 months ago

It would also be great to have a keyboard shortcut for this

tripplehelix commented 1 month ago

Would love a setting to have folders automatically collapsed on start.