ouch icon indicating copy to clipboard operation
ouch copied to clipboard

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

Open theSprog opened this issue 1 year ago • 2 comments

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 avatar Mar 07 '24 13:03 theSprog

Thanks for sharing appreciation :heart: 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.

marcospb19 avatar Mar 07 '24 16:03 marcospb19

cool, --depth is enough for me

theSprog avatar Mar 08 '24 05:03 theSprog