zed icon indicating copy to clipboard operation
zed copied to clipboard

Compact empty directories in the file tree

Open SouchonTheo opened this issue 1 year ago • 9 comments

Check for existing issues

  • [X] Completed

Describe the feature

Hello everyone 👋,

It would be amazing to have something like vscode with a compact view of empty directories. See the example below:

CleanShot 2024-04-22 at 17 30 50

This would greatly improve readability for Scala/Java projects!

Thanks in advance for your consideration 🙏

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

CleanShot 2024-04-22 at 17 30 50

SouchonTheo avatar Apr 22 '24 15:04 SouchonTheo

We have a setting for this: project_panel.auto_fold_dirs.

https://github.com/zed-industries/zed/blob/ee531b6f4dd2090472b8aff75bf77eb9b2d6e250/assets/settings/default.json#L235-L237

maxdeviant avatar Apr 22 '24 15:04 maxdeviant

I setup this param to true but it doesn't seems to work CleanShot 2024-04-22 at 18 00 40

SouchonTheo avatar Apr 22 '24 16:04 SouchonTheo

I really want something like

folder1/folder2/folder3/folder4 -> tmp -> other files

SouchonTheo avatar Apr 22 '24 16:04 SouchonTheo

I setup this param to true but it doesn't seems to work CleanShot 2024-04-22 at 18 00 40

What version of Zed are you on?

And what happens if you click into the project panel? For me the project panel didn't live-update after changing the setting until I clicked into the project panel.

maxdeviant avatar Apr 22 '24 16:04 maxdeviant

Zed 0.131.6

Nothing happen :/

SouchonTheo avatar Apr 22 '24 16:04 SouchonTheo

I also tried to restart zed btw

SouchonTheo avatar Apr 22 '24 16:04 SouchonTheo

If you need more information don't hesitate

SouchonTheo avatar Apr 22 '24 17:04 SouchonTheo

@SouchonTheo The auto_fold_dirs setting is in the Preview release (https://github.com/zed-industries/zed/releases/tag/v0.132.0-pre), but not Stable. It should get released in Stable on Wednesday.

baldwindavid avatar Apr 22 '24 18:04 baldwindavid

oh ok ! make a lot of sense !

Do you mind if I close the ticket myself on Wednesday if everything goes well ?

Big thanks @maxdeviant @baldwindavid for your time 🙏

SouchonTheo avatar Apr 22 '24 18:04 SouchonTheo

working perfectly fine thanks for the hard work !

SouchonTheo avatar Apr 24 '24 18:04 SouchonTheo

Good job guys! 👏

matejcerny avatar Apr 25 '24 07:04 matejcerny

Hi everyone! May be i do something wrong, but i can't use this feature. I create .zed/settings.json to my project, try add { "project_panel": { "auto_fold_dirs": true } } and { "auto_fold_dirs": true } in it, but middle packages still not hidden. I use Ubuntu 22.04.4 LTS and Zed v0.143.7. Can you pls help me?

Relmen20 avatar Jul 15 '24 09:07 Relmen20