I am often inspecting heterogeneous code bases, and would like to, at a quick glance, know the percentage of files per language, just like Github shows for a repository:
However, in Github's case, once we enter a subdirectory of the repository, this data is no longer available.
I'd like to have the same, but for a local directory, either graphically or via the command-line, ideally Linux-compatible.
cloc shows a numerical table, but it does not group by subdirectory, so if I want to get more details, I have to:
cloc .for the main directory;
- find out where are the files (which subdirectories, if any);
- enter each subdirectory and re-run
cloc .to get the values for that directory.
The absence of bars, colors, etc, makes it very hard to quickly evaluate where are most of the files for a given language.
WinDirStat does offer graphical facilities for navigating and grouping directories and, I believe, is able to colorize files by extension. But the Linux equivalent, k4dirstat, does not offer this colorization (its colors are only related to the depth of the elements).
Other similar tools, such as Baobab, seem not to offer grouping-per-file-type capabilities.
Is there a Linux-compatible tool that fits my usage scenario?