Show NUMBER of Files, as a column (just as the "filesize" column)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
janla
Junior Member
Junior Member
Posts: 6
Joined: 2023-10-15, 02:45 UTC

Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *janla »

I often need to see/find the number of files in a folder (and in its subfolders).

Background :
- I am syncronizing (using "Free File-Sync"), and after some time, the number of files has grown so much, that I need to zip/pack the files in the folders.
- And, this is a "pain in the a.." without a "number-of-files" being shown (by default).

So, what I hope for, and need :
- a column, that will show "the number of files" in the subfolder(s) - for each line.
- a bit like my Thunderbird-program, which shown number of emails (unread)...

This also now makes sense, because screens have gotten bigger, and there has come good room for "more columns" in the 2-window interface.

PS: IF this already exists, the sorry. And, then please tell, how to make this work/show in the 2-window interface.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *Gral »

User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *petermad »

janla wrote: 2023-10-20, 10:55 UTC This also now makes sense, because screens have gotten bigger, and there has come good room for "more columns" in the 2-window interface.
well, laptop screens does not get bigger, so it is a bad idea to impose this feature for all users as a default setting.

janla wrote: 2023-10-20, 10:55 UTC PS: IF this already exists, the sorry. And, then please tell, how to make this work/show in the 2-window interface.
You can make a Custom columns view and use the plugin DirSizeCalc (as suggested by Gral).

See: https://tcmd.madsenworld.dk/filecountcustomcolumn.png
In TC it will look like this: https://tcmd.madsenworld.dk/filecountcustomcolumn2.png
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
janla
Junior Member
Junior Member
Posts: 6
Joined: 2023-10-15, 02:45 UTC

Re: Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *janla »

thanks for the quick help.

I have tried the plugin out. And, unfortunately it is quite slow.

So, I will not be able to use it, unless there is a way to enable/disable it ... which I could not find.

(and I found a much faster alternative - for specific use: "TreeSize-Free")
..
(so - I have removed the plugin from TC. And, when I need file-count, I will use TreeSize-Free)
..
(however, if there is/was a smart enable/disable option - then DirSizeCalc could be an option .. or if the functionality got implemented in TC (as a custom-selectable column))
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *Fla$her »

janla wrote: 2023-10-20, 15:03 UTCI found a much faster alternative - for specific use: "TreeSize-Free"
WizTree is considered the fastest.
Overquoting is evil! 👎
massor
Junior Member
Junior Member
Posts: 26
Joined: 2022-05-01, 18:30 UTC

Re: Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *massor »

If we already use it, maybe Everything can be at help with this? It already have indexed all the files and folders on our hard drives.
Just a crazy thought: if just Void make a Everything TC plugin? I think that will be even faster than WizTree...
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *Fla$her »

2massor
I think you are not the only one who has had such thoughts. But indexing isn't necessarily ubiquitous, it depends on the settings. There are also problems with updating the database when the program doesn't work as a service from the system start. It would be better if DirSizeCalc or a similar plugin used MFT when calculating.
Overquoting is evil! 👎
joe910
Junior Member
Junior Member
Posts: 41
Joined: 2009-02-23, 03:05 UTC
Location: Peoria, IL USA

Re: Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *joe910 »

(however, if there is/was a smart enable/disable option - then DirSizeCalc could be an option .. or if the functionality got implemented in TC (as a custom-selectable column))
The "new" custom column is easily changed to a different or standard custom column view with a left-click to the column headings and switching or by clicking the "All Files Details" button on the standard button bar.

I used DirSizeCalc and Everything and the speed is great on a local folder, much slower on a network share.
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: Show NUMBER of Files, as a column (just as the "filesize" column)

Post by *tuska »

janla wrote: 2023-10-20, 10:55 UTC I often need to see/find the number of files in a folder (and in its subfolders).

So, what I hope for, and need :
- a column, that will show "the number of files" in the subfolder(s) - for each line.
Directly in Everything 1.5a, the number of files can be displayed in real-time in the column "Descendant File Count".

The column can be added as follows:
  1. Right-click on a column heading, e.g. "Date Modified" > Add Columns... > Everything Properties - Search: desc >
    Double click on "Descendant File Count".
     
    - OR -
  2. Enter the following in the Everything search box:

    Code: Select all

    addcolumn:column-a column-a:=descendant-file-count:
    In this case, "Column A" is displayed as the column heading.
     
    Even better:

    Code: Select all

    addcolumn:column-A; A-label:="Descendant File Count" A:=descendant-file-count:
Important notice:
Everything counts hidden files by default.
To get the same number of files in Total Commander, the hidden files must be shown in TC -> cm_SwitchHidSys.

 
More detailed example: Bookmark with macro and additional columns...

Bookmark & Search query in 'Everything' 1.5.0.1358a (x64)
  1. Menu "Bookmarks" > "Organize Bookmarks..." > New...
  2. Bookmark - Name (max. approx. 260 characters):

    Code: Select all

    Files\Inside a folder\Child File & Folder Count | Descendant Count | addcolumn:column-a column-a:=descendant-file-count: | https://www.ghisler.ch/board/viewtopic.php?t=80341 Show NUMBER of Files, as a column (just as the "filesize" column)
  3. Match case: ... Regular expressions: Disabled
  4. Search: (No change)
    - OR -
    Search: Custom | Path
  5. Filter: Everything
  6. Columns: > Select... > Add... (See also: descendant | childcount)

    Code: Select all

    Name;Path;Extension;Size;Total Size;Descendant Count;Descendant File Count;Descendant Folder Count;Child File Count From Disk;Child Folder Count From Disk;Child Count From Disk;Date Modified;Date Created;Date Accessed
  7. Sort: Name | Ascending
  8. View: (No change)
  9. Index: Local database
  10. Macro: desc
    For a search query with macro "desc", the following must be entered in the Everything search box: desc: (with ':' colon!)
  11. Keyboard shortcut: ... as you like ...
  12. Click on button "OK", "OK".
  13. The creation of the bookmark is now complete.
     
  14. Enter the search query directly in 'Everything' using the macro - the result is displayed in real time(!), e.g.
    1. Code: Select all

      desc:
      - OR -
    2. Code: Select all

      D:\Test desc:
      - OR -

      Code: Select all

      desc: D:\Test
      ... [your path - to narrow down the search a little] ...
 
A transfer of the search result from 'Everything' to Total Commander is possible - after the corresponding setup in 'Everything' -
e.g. by double-clicking on the folder OR path in 'Everything'.

See: Point 13.2.g. - SETTINGS: For 'Everything' in Total Commander & 'Everything' -> from 'Everything' Version 1.5

Example:
Options - 1.5.0.1358a (x64) > Context Menu > Open (Folders) > Command: $exec("C:\totalcmd\TOTALCMD64.EXE" /O /A /S "%1")



Windows 11 Pro (x64) Version 22H2 (OS build Build 22621.2428) | TC 11.02RC3 x64/x86
Search queries: Total Commander <=> 'Everything' | 'Everything' 1.5.0.1358a (x64) | descendant | childcount
Post Reply