Page 1 of 1

a way to display the count of sub-items in the list view

Posted: 2015-12-28, 07:46 UTC
by Michael REMY
hi,

i order my music album like that :

-artist name
---Year album title
---Year album title
---Year album title

so, when i am in the list view, i have no clue to know how many album i have in my folder until i browse it.

it could be there useful to display the count of sub-item (number of folder of files) near the parent name. in a different font and size color, like :

Artist name (3)

or at least a quick short key to display it like we have the SPACEBAR to display the content size, but get here the count number instead (or both following options preference...)

have a good day !

Posted: 2015-12-28, 09:31 UTC
by Lefteous
In case a plugin solution is okay for you DirSizeCalc can be used to calculate the number of sub items. The field is called 'Directory Count'.
There are several meaningful ways to use this. One is in a tooltip another one is a custom column. In a custom column it can be displayed automatically or on demand. When using the 'on demand' optin you may also assgin a hotkey by using the command cm_LoadAllOnDemandFields. See the documentation for details.

http://totalcmd.net/plugring/dirsizecalc.html

Posted: 2015-12-28, 20:48 UTC
by Michael REMY
Lefteous wrote:In case a plugin solution is okay for you DirSizeCalc can be used to calculate the number of sub items. The field is called 'Directory Count'.
http://totalcmd.net/plugring/dirsizecalc.html
can we put the number in the name (i would not have another column for that) and only when the number is >0.

Image: http://lefteous.totalcmd.net/tc/images/dirsizecalc/custom_column_example.png

Posted: 2015-12-28, 22:12 UTC
by Lefteous
2Michael REMY
can we put the number in the name
Currently you cannot edit the default name column. It has been requested but rejected by Ghisler.
What you could do though is to color the folders by using the field 'dirsizecalc.Contains Subdirectories'. This field is also faster as doesn't really count but stops when a subdirectory has been found.