soxofaan / duviz

Command-line disk space usage visualization utility
MIT License
113 stars 16 forks source link

Feature request: xdiskusage-like layout made of vertical columns instead of horizontal bars #17

Open zivanfi opened 2 years ago

zivanfi commented 2 years ago

Hi,

I really like that with duviz I can have hierarchical disk usage visualization in a terminal, but I prefer the left-to-right layout of xdiskusage:

xdiskusage

It would be nice to have a similar layout available in duviz. I created an implementation for this that you can use if you like. It looks like this:

duviz-columns

In color mode:

duviz-columns-colored

soxofaan commented 2 years ago

Interesting, Thanks for the PR (I hope I can find some time to give it a proper review).

I'd like to point out however that I explicitly chose the top-to-bottom based visualization because it is more space efficient and you have much fewer cases of trimmed labels where it is important (the big blocks)

zivanfi commented 2 years ago

Hmm, funnily my reason for preferring the left-to-right layout is also label trimming. :) While the top levels clearly allow longer labels in the top-to-bottom layout, I often find that many blocks on lower levels trim the label too much while with the left-to-right layout every block gets enough label space unless it is so insignificant that it does not even take up a single line.

In any case, this is clearly a question of personal preference and I understand if you prefer the top-to-bottom layout. You may still consider this PR in this case too, just to allow the end user to make their own choice of preference. On the other hand, accepting this contribution could put maintenance burden on you in the future, so I understand if you decide to prefer the simplicity of the code base over a wider feature-set.