Page 1 of 1

Count the size of selected directories only

Posted: 2009-12-19, 05:14 UTC
by ts4242
To calculate the size of individual dirs, I have to press <Space> key on each dir. A new command cm_CountSelectedDirContent would be great.

Wheel---

Posted: 2009-12-19, 07:14 UTC
by Clo
2ts4242

:) Hello !

• What about cm_CountDirContent (2014) :?:

:mrgreen: KR
Claude
Clo

Posted: 2009-12-19, 07:50 UTC
by ts4242
2Clo

:) Hello !

I know cm_CountDirContent, my proposal command's name has taken from it cm_CountSelectedDirContent :wink:

The problem is that, I have folder contains huge subfolders and I want to calculate the size of some subfolders only, cm_CountDirContent waste my time and pressing <Space> key is very boring specially if the selected folders are not continues.

Posted: 2009-12-19, 08:49 UTC
by Lefteous
2ts4242
You can find a detailed description how this can be achieved using the content plugin DirSizeCalc:
http://lefteous.totalcmd.net/tc/docs/dirsizecalc/readme.htm#use_cases_load_fields_on_demand

Posted: 2009-12-19, 09:27 UTC
by ts4242
2Lefteous

Very nice, Thank you :D

Anyway, implementing cm_CountSelectedDirContent is very simple, so I hope to find it in TC.

Posted: 2009-12-19, 10:40 UTC
by Lefteous
I guess the better way would be to make tc.Size work as on demand field for folders so it supports cm_LoadSelOnDemandFields.
It's strange to have one command for custom columns and one for the long view.