Source code dirs have meaningful file names. for example AAAbbbCCddEE.h/.cxx : where AAA, bb CC could refer to abbrev of sub-systems or just a functionality-description like "...Print..." or "...Check..."
as the code-base grows we land up with more than handful files per dir. it becomes daunting just to know what is doing what especially for newer-areas.
in this context a generic tool which would levelize all the file-names by dynamically maximally matching there names and display levels and files would be useful. what constitutes as a level depends whether a matching pre-fix exists in another file. so in above example if AAAbbbCCddFF.h/.cxx exists in same dir then both AAAbbbCCddFF and AAAbbbCCEE would belong to same level (depth-4) AAAbbbCCdd and displayed together
looks doable with diff (on filenames itself) and shell tools - any similar-existing references would be useful?