Byron / dua-cli

View disk space usage and delete unwanted data, fast.
https://lib.rs/crates/dua-cli
MIT License
4.17k stars 113 forks source link

Show number of files and folders in overview and interactive mode #251

Closed LostInCompilation closed 4 months ago

LostInCompilation commented 4 months ago

It would be really amazing, if dua could show the number of files and folders per displayed directory next to the size. Also in interactive mode this would be greatly appreciated.

Thanks :)

Byron commented 4 months ago

Thanks for the suggestion. What helps with feature requests is to elaborate on the workflow that it would support.

In interactive mode, this already works today to some extend. Press C to add the 'count' column, displaying the amount of entries, i.e. directories + files + symlinks . Press ? for all the hotkeys.

Screenshot 2024-07-26 at 07 17 04

What this issue is asking it to split the entry count into files & folders.

Further, it asks to add such counts in the non-interactive version.

Screenshot 2024-07-26 at 07 19 10
LostInCompilation commented 4 months ago

Thanks for the info. I think it would be convenient to show the total number of files and folders directly in interactive mode by default, with the option to hide them when pressing c. In most terminals there is enough horizontal space available.

Splitting the count into files and folders would be good too.