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

feat: Add --indicate-deeper-levels Flag to eza --tree #1223

Open
SamuelBorn opened this issue Nov 7, 2024 · 3 comments
Open

feat: Add --indicate-deeper-levels Flag to eza --tree #1223

SamuelBorn opened this issue Nov 7, 2024 · 3 comments

Comments

@SamuelBorn
Copy link

Current Issue: Using eza --tree --level=n currently provides no indication of additional nested levels, which can lead to confusion about directory contents when only a limited depth is shown.

Proposed Solution: Introduce a --indicate-deeper-levels flag to mark directories that have further levels beyond the specified depth. A simple indicator (e.g., ...) would clarify that deeper levels exist, improving clarity without altering the specified --level setting.

Example

Original Folder Structure

.
├── a
└── b
   ├── c
   └── d
      └── e

Output of eza --tree --level=1

.
├── a
└── b

Wanted behavior of e.g. eza --tree --level=1 --indicate-deeper-levels

.
├── a
└── b
   └── ...
@cafkafk
Copy link
Member

cafkafk commented Nov 14, 2024

I'd prefer it being more compact graphically, e.g.

.
├── a
└── b...

Or making use of unicode elipsis

.
├── a
└── b…

@cafkafk
Copy link
Member

cafkafk commented Nov 14, 2024

And honestly, if this could be implemented without a runtime impact on the already pretty slow --tree flag, it may be worth just making this a default, I think we can be that opinionated :p

@SamuelBorn
Copy link
Author

I'd prefer it being more compact graphically

Yeah that looks also better to me!

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

2 participants