jeromerobert / k4dirstat

K4DirStat (KDE Directory Statistics) is a small utility program that sums up disk usage for directory trees, very much like the Unix 'du' command. It displays the disk space used up by a directory tree, both numerically and graphically (copied from the Debian package description).
GNU General Public License v2.0
64 stars 10 forks source link

Custom file extension coloring rules in the tree map #21

Open jeromerobert opened 8 years ago

jeromerobert commented 8 years ago

Original report by Jerome Robert (Bitbucket: jeromerobert, GitHub: jeromerobert).


It would be nice to be able to support custom file extension. Currently the only way to do that is editing KTreemapView::tileColor in src/ktreemapview.cpp such as in b4fc4be.

Having a GUI would be nice but a first fast way to implement this would to read it from ~/.kde/share/config/k4dirstatrc with something like:

KSharedConfig::openConfig()->group("File extension colors");

Thanks to Matt Falder for the idea.