Skip to content
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

feature(explorer): group empty dirs as one directory #1264

Open
1 task done
uthmanmoh opened this issue Feb 18, 2025 · 1 comment
Open
1 task done

feature(explorer): group empty dirs as one directory #1264

uthmanmoh opened this issue Feb 18, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@uthmanmoh
Copy link

Did you check the docs?

  • I have read all the snacks.nvim docs

Is your feature request related to a problem? Please describe.

In Java usually directories follow the structure below which gets rendered pretty ugly in a file tree since it takes up too much space.

Image

Describe the solution you'd like

In neo-tree I had configured it like:

  {
    "nvim-neo-tree/neo-tree.nvim",
    opts = {
      filesystem = {
        -- Make neo-tree group empty directories like kotlin/com/example
        group_empty_dirs = true,
        scan_mode = "deep",
      },
    },
  },

Which would achieve my desired behaviour of grouping empty directories to make it look like just src/main/java/com was one directory in that example.

I see that this is just a picker but I don't see this sort of option available in the picker config either

Describe alternatives you've considered

Haven't considered any.

Additional context

No response

@uthmanmoh uthmanmoh added the enhancement New feature or request label Feb 18, 2025
@xian-wen
Copy link

See #916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants