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

Request: Add Depth Option to --tree for Listing Archive Contents #638

Open
theSprog opened this issue Mar 7, 2024 · 2 comments
Open

Request: Add Depth Option to --tree for Listing Archive Contents #638

theSprog opened this issue Mar 7, 2024 · 2 comments
Labels
enhancement New feature or request medium priority

Comments

@theSprog
Copy link

theSprog commented Mar 7, 2024

Hello ouch team,

First of all, thank you for developing such a practical and user-friendly tool. ouch has been incredibly useful, especially the list command's --tree option, which displays the contents of archives in a tree structure. This feature is immensely helpful for quickly understanding the structure of an archive.

However, I've noticed that the --tree option seems to lack the ability to limit the display depth, similar to the -L option in the tree command. This capability would be particularly useful when dealing with archives that contain a large number of nested directories.

Feature Request:
I would like to request the addition of an option to the list --tree command to specify the maximum depth of display, such as list --tree 2, which would only show up to the second level of directories and files.

I believe this feature would make ouch even more powerful and flexible. Thank you again for your hard work, and I look forward to seeing ouch continue to evolve!

Best regards,

@theSprog theSprog added the enhancement New feature or request label Mar 7, 2024
@marcospb19
Copy link
Member

Thanks for sharing appreciation ❤️ it means a lot to me (gives motivation to give this the attention it deserves).

That's a good suggestion, --depth could be there for the list command overall, tree or not.

Some tools do --max-depth and --min-depth, for Ouch I think we might be good with just --depth.

@theSprog
Copy link
Author

theSprog commented Mar 8, 2024

cool, --depth is enough for me

@theSprog theSprog closed this as completed Mar 8, 2024
@marcospb19 marcospb19 reopened this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium priority
Projects
None yet
Development

No branches or pull requests

2 participants