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 Request: summary by extensions in trees #1208

Open
nim65s opened this issue Jun 25, 2023 · 0 comments
Open

Feature Request: summary by extensions in trees #1208

nim65s opened this issue Jun 25, 2023 · 0 comments

Comments

@nim65s
Copy link

nim65s commented Jun 25, 2023

Hi,

Thanks for this project !

I'm looking for a way to get a more concise overview of a tree. This would be useful to avoid scrolling too much or even exceed shell history on big trees. It would also help drawing a less cluttered version of a tree in a documentation page, or a small enough one to fit on a slide.

I think we could regroup files by extensions, when multiple similar ones are found in same folder, eg. from:

.
├── CMakeLists.txt
├── doc
│  ├── book.toml
│  └── src
│     ├── bin.md
│     ├── lib.md
│     ├── meshes.md
│     ├── README.md
│     ├── SUMMARY.md
│     └── textures.md
├── include
│  └── my-project
│     ├── fwd.hpp
│     ├── meshes
│     │  ├── dump.hpp
│     │  ├── load.hpp
│     │  └── process.hpp
│     ├── my-project.hpp
│     └── textures
│        ├── dump.hpp
│        ├── load.hpp
│        └── validate.hpp
├── lib
│  ├── libmy_project.so
│  └── python3.11
│     └── site-packages
│        └── my_project
│           ├── __init__.py
│           ├── helpers.py
│           ├── meshes.py
│           ├── textures.py
│           └── my_project.so
├── pyproject.toml
├── README.md
├── share
│  └── my-project
│     ├── meshes
│     │  ├── base.stl
│     │  └── tool.stl
│     └── textures
│        ├── base.png
│        └── tool.png
└── src
   ├── lib.cpp
   ├── main.cpp
   ├── meshes
   │  ├── dump.cpp
   │  ├── load.cpp
   │  └── process.cpp
   └── texures
      ├── dump.cpp
      ├── load.cpp
      └── process.cpp

to:

├── CMakeLists.txt
├── doc
│  ├── book.toml
│  └── src
│     └── *.md x6
├── include
│  └── my-project
│     ├── *.hpp x2
│     ├── meshes
│     │  └── *.hpp x3
│     └── textures
│        └── *.hpp x3
├── lib
│  ├── libmy_project.so
│  └── python3.11
│     └── site-packages
│        └── my_project
│           ├── *.py x4
│           └── my_project.so
├── pyproject.toml
├── README.md
├── share
│  └── my-project
│     ├── meshes
│     │  └── *.stl x2
│     └── textures
│        └── *.png x2
└── src
   ├── *.cpp x2
   ├── meshes
   │  └── *.cpp x3
   └── texures
      └── *.cpp x3

I think this would also help to improve the signal/noise ratio in directories where hundreds of similar files are generated, while they are probably not what we are looking for, or at least not individually.

PS: This would also fit well with the --icons flag

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

1 participant