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

Add option to not simplify folders into gray colors. #166

Closed
marsfan opened this issue Jun 14, 2021 · 3 comments
Closed

Add option to not simplify folders into gray colors. #166

marsfan opened this issue Jun 14, 2021 · 3 comments

Comments

@marsfan
Copy link

marsfan commented Jun 14, 2021

It would be nice to have the option to disable the converting of small files into gray folders in the tree map. I have found this conversion to have a somewhat jarring appearance, and much prefer the appearance of WizTree on Windows, where small files are still shown individually.

The following images are from scanning the same directory, once with QDirStat, and once with WizTree.

Scanning with QDirStat

image

Scanning with WizTree

image

As the images show, QDirStat will abstract away folders with smaller files by turning the entire area gray, while WizTree will continue to display all files, no matter what the size.

@shundhammer
Copy link
Owner

shundhammer commented Jun 14, 2021

Compare directory trees with the same amount of files; you will be surprised. Windows drives typically have about 10% the number of files as Linux filesystems, so everything in a treemap generated on Windows is on average 10 times as large as on Linux, making small files less likely to disappear in the clutter (i.e. becoming part of the grey areas).

There is also this configuration option in ~/.config/QDirStat/QDirStat.conf:

[Treemaps]
...
MinTileSize=3
...

that determines the minimum treemap tile size to try to render it, which includes finding the appropriate color.

But since there are so many tiny tiles on a Linux filesystem, that will have a bad impact on performance, and you won't see much in a one-pixel tile anyway.

@shundhammer
Copy link
Owner

shundhammer commented Jun 14, 2021

See also #58 : Lots of screenshots there, including MinTileSize=1 examples.

In particular, see also my comment #58 (comment) there.

@shundhammer
Copy link
Owner

shundhammer commented Jun 14, 2021

Please also notice that one cause for the amount of grey areas in the QDirStat treemap is the large percentage (about 30%) of files without filename extension on Linux, so the type cannot realistically be determined. Those will be grey, even if they are large enough to be rendered in color (i.e. > MinTileSize) in the first place.

And (to prevent the inevitable follow-up discussion) no, it is not an option to call the file command on every single one of that. I already discussed that extensively in several GitHub issues. ;-)
See also #45 (comment)

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