neo-tree.nvim icon indicating copy to clipboard operation
neo-tree.nvim copied to clipboard

FEATURE: collapsing or merging folders in large codebases

Open fent opened this issue 1 year ago • 0 comments

Did you check the docs?

  • [X] I have read all the docs.

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

I'm working in a large codebase with some folders containing hundreds of folders. When I open neo-tree, it is difficult to navigate to the files I'm interested in since I have to do a lot of up and down scrolling to get to where I need to get. It's also difficult to get an idea of where I am in the file tree since I can't see the parent folders.

Describe the solution you'd like.

If a folder contains above some threshold of files, it displays those files in groups, maybe by their first character

folder
- apple
- baby
- carrot
- dice
- echo
- gary

then if the threshold is 2 it would then show

folder
- [apple ... carrot]
- [dice ... gary]

these merged folders/files would behave like a folder, able to be expanded and collapsed again. what do you think?

Describe alternatives you've considered.

I can use the buffers or git sources, but only if the files I'm working on have all been opened or edited. otherwise, it's difficult to get to those files through neo-tree

I looked at the nesting_rules option, but that's meant to be used for specific files only, not arbitrary files that are right next to each other in a large folder.

Additional Context

No response

fent avatar Aug 08 '23 18:08 fent