Skip to content

Auto coalesce nested folders when using group_empty_dirs #832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
oddlama opened this issue Mar 27, 2023 · 3 comments
Closed

Auto coalesce nested folders when using group_empty_dirs #832

oddlama opened this issue Mar 27, 2023 · 3 comments

Comments

@oddlama
Copy link

oddlama commented Mar 27, 2023

I sometimes have to work with java projects, which have deeply nested folder structures, where many folders are completely empty except for a subfolder. group_empty_dirs is an awesome feature to tame that mess. What I'd wish neo-tree would do is to automatically peek into encountered folders to see whether they are otherwise empty, so that I don't have to enter each stage manually. It should be easy to detect this and would be a great UX improvement for group_empty_dirs. What do you think?

image
[Enter]
image
[Enter]
image
[Enter]
image

Neo-tree has been absolutely awesome and that's one of the only things I'm missing since I switched from nvim-tree last year. Thanks for making it.

@ghostbuster91
Copy link
Contributor

ghostbuster91 commented May 28, 2023

It seems that it has been somehow address by #600

You can enable it by setting:

        filesystem = {
            group_empty_dirs = true,
            scan_mode = "deep",
        },

It is not the same though as it clutters the view on start with all these empty nodes being collapsed and visible.

@pysan3
Copy link
Collaborator

pysan3 commented Jun 21, 2023

Thanks @ghostbuster91 !

Does this achieve what you need @oddlama ?

@oddlama
Copy link
Author

oddlama commented Jun 22, 2023

Yes, this is perfect! Thanks for reminding me to test this.

@oddlama oddlama closed this as completed Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants