Page 1 of 1

Sort on size - include directories

Posted: 2008-05-05, 11:01 UTC
by Pomax
Can an option be added to allow directories to be reordered based on their size too?

I frequently find myself issuing the "cm_CountDirContent" command (bound to a button to the left of the refresh button), only to find that there are so many subdirs with varying content size that it is almost impossible to use total commander for determining which dirs are taking up the most space. A simple ordering option would solve this.

I would suggest an extension of the display section's sorting options with a simple choice set:

-- Sorting Directories --

[x] Sort files and folders separately, except when sorting on:
   [_] Name
   [x] Size (may be slow for large folders if checked)
   [_] Date

When sorting separately, always sort folders on:
   [x] What files are sorted on
   [_] Name
   [_] Size (may be slow for large folders if checked)
   [_] Date

------

Perhaps with a little warning when selecting "Size" that whenever one changes folder, the CountDirContent command will be issued and that if this takes too long the user should press 'esc' or something.

Regards,


- Pomax

Posted: 2008-05-05, 11:11 UTC
by theosdikaios
2Pomax
Did you tried
Configuration - Options - Display - Sorting directories - Like &files (also by time)
ever?

Posted: 2008-05-08, 10:33 UTC
by Pomax
Nice sarcasm. Of course I have.

Enabling 'sort like files' as per the current implementation does not sort the directories on size unless you first profile the directory yourself. That's rather cumbersome I think you will agree.

My suggestion is for a more structural approach, where the program simply applies the sorting you picked every time you change directories.

- Pomax

Posted: 2008-05-08, 11:09 UTC
by StickyNomad
2Pomax

You may take a look at DirsizeCalc

This content plugin allows you to define a custom column set including permanently displayed directory sizes. If you then sort by size, the sorting is kept while browsing through directories.