nvim-telescope / telescope-file-browser.nvim

File Browser extension for telescope.nvim
MIT License
1.6k stars 89 forks source link

Option to flatten/collapse empty directories #378

Closed eslam-allam closed 3 months ago

eslam-allam commented 3 months ago

Is your feature request related to a problem? Please describe. As a Java developer (unfortunately) I often have multiple nested empty directories representing packages. This can be quite tedious to explore especially when I have 4-5 empty directories before I reach the file I want.

Describe the solution you'd like It would be nice to have an option to collapse/flatten any directories that only have one other directory as a child/only directories as children, Either way is fine. Something similar to the flattened package view in Intellij. Other plugins like nvim-tree also have this feature.

Describe alternatives you've considered I can't think of any other solutions to this problem. I've been mostly using the fuzzy finder to search for the filename instead of this browser whenever I'm working on a Java project.

eslam-allam commented 3 months ago

Just found out that this already kinda exists using collapse_dirs. My apologies.