'childfilecount:1' and extension-column

General discussion related to "Everything".
Post Reply
mmarlyse
Posts: 6
Joined: Sat Dec 17, 2022 6:27 pm

'childfilecount:1' and extension-column

Post by mmarlyse »

Any possibility to search with 'childfilecount:1 ' and get the respective file-extension displayed in the the extension-column?
thank you.
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: 'childfilecount:1' and extension-column

Post by NotNull »

I am not aware of such a solution, but with Everything 1.5 use the following search:

Code: Select all

file:   sibling-file-count:0
The Path and Extension column will now show the relevant information.



To show folders that have 1 single file and no subfolders:

Code: Select all

file:  sibling-count:0

sibling-count:
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: 'childfilecount:1' and extension-column

Post by tuska »

NotNull wrote: Wed Feb 01, 2023 2:35 pm To report only folders that do not have any more subfolders:

Code: Select all

file:  sibling-count:0
2NotNull

Double-clicking on the path in Everything opens it in Total Commander for me,
but REMOVES the line in the search result!?

Is it the same for you?

Everything 1.5.0.1335a (x64)
Context Menu > Open Path > Command: $exec("C:\totalcmd\TOTALCMD64.EXE" /O /A /S "%1")
______________________________________________________________
Windows 11 Pro (x64) Version 22H2 (OS build 22621.1194) | TC 10.52 x64
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: 'childfilecount:1' and extension-column

Post by NotNull »

:shock:

Here too. Behaviour is highly unpredictable.

Also issues with righ-click => Set runcount=500 when this search is still active: file no longer in result list
Will try to find a pattern ..

(v1335a x64)
mmarlyse
Posts: 6
Joined: Sat Dec 17, 2022 6:27 pm

Re: 'childfilecount:1' and extension-column

Post by mmarlyse »

>> file: sibling-count:0
thanks a lot!

>>Double-clicking on the path in Everything opens it in Total Commander for me,
>>but REMOVES the line in the search result!?
>>Is it the same for you?
yes, same problem here.
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: 'childfilecount:1' and extension-column

Post by NotNull »

Not a solution, but changing the search query (for example by adding a <space>) brings the missing file back to the resultlist.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: 'childfilecount:1' and extension-column

Post by tuska »

Mmmh.
In my case, this must have been a temporary malfunction, because now the error no longer occurs. :roll:

EDIT 0:16:
... and the error is sometimes there again.
It is difficult to find out when this behaviour occurs.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: 'childfilecount:1' and extension-column

Post by void »

Thank you for the issue report.

Everything 1.5.0.1336a fixes an issue with sibling-count: not matching files after the results change.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: 'childfilecount:1' and extension-column

Post by tuska »

void wrote: Thu Feb 02, 2023 7:06 am Thank you for the issue report.

Everything 1.5.0.1336a fixes an issue with sibling-count: not matching files after the results change.
Thank you for the prompt fix! :)
w64bit
Posts: 257
Joined: Wed Jan 09, 2013 9:06 am

Re: 'childfilecount:1' and extension-column

Post by w64bit »

sibling-file-count:10
open folder -> 15 files (!?!)

sibling-folder-count:1
open folder -> 0 subfolders (!?!)

Both searches are listing also files. It shouldn't be only folders?
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: 'childfilecount:1' and extension-column

Post by NotNull »

Are all these 15 files visible in Everything?
i.e. If sibling-file-count:10 reports c:\some\folder\123.txt, how many files are shown whhen searching for parent:"c:\some\folder"

w64bit wrote: Thu Feb 02, 2023 5:19 pm sibling-folder-count:1
open folder -> 0 subfolders (!?!)
You mean sibling-folder-count:1 reports folder "c:\some\folder" or "c:\some\file.txt" and "c:\some\" contains 0 folders in Explorer? :?


Did you try a Force Rebuild? (menu:Tools > Options > Indexes)
w64bit
Posts: 257
Joined: Wed Jan 09, 2013 9:06 am

Re: 'childfilecount:1' and extension-column

Post by w64bit »

NotNull wrote: Thu Feb 02, 2023 6:07 pm i.e. If sibling-file-count:10 reports c:\some\folder\123.txt, how many files are shown whhen searching for parent:"c:\some\folder"
11
NotNull wrote: Thu Feb 02, 2023 6:07 pm You mean sibling-folder-count:1 reports folder "c:\some\folder" or "c:\some\file.txt" and "c:\some\" contains 0 folders in Explorer? :?
Yes, 0 and 5 and ...
NotNull wrote: Thu Feb 02, 2023 6:07 pm Did you try a Force Rebuild? (menu:Tools > Options > Indexes)
Yes
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: 'childfilecount:1' and extension-column

Post by NotNull »

So ... Everything is giving the right results based on the information it has in it's database.
But that information does not correspond with the 'live' filesystem.
And a Force Rebuild does not bring the two in sync. Hmm ..\

First thought: Exclusions. Certain type of files missing in Everything?
- Check menu:Tools > Options > Indexes > Exclude
- Check menu:Tools > Options > Indexes > NTFS/Network/FAT/ ... for each volume/drive if there is an Include only setting defined
w64bit
Posts: 257
Joined: Wed Jan 09, 2013 9:06 am

Re: 'childfilecount:1' and extension-column

Post by w64bit »

1336
All clean in ini. No exclude. No inlcude only.
I delete db and ini. The same result.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: 'childfilecount:1' and extension-column

Post by void »

I'm seeing the expected results here.
There could still be an issue with Everything..

To be sure, are you confusing sibling count with child count?

Sibling-count will count the number of files/folders in the same location. (excluding self)
Child-count will count the number of child files/folders.

Sibling-count is calculated for each file/folder. (files can have siblings)
Child-count is calculated for folders only. (only folders can have children)



Please consider the following "made-up" folder C:\Windows:

[SYSTEM32] (directory)
Notepad.exe (file)
Explorer.exe (file)



The child-count for C:\Windows is: 3 (SYSTEM32, Notepad.exe and Explorer.exe)
The child-folder-count for C:\Windows is: 1 (SYSTEM32)
The child-file-count for C:\Windows is: 2 (Notepad.exe and Explorer.exe)

The sibling-count for C:\Windows\System32 is: 2 (Notepad.exe and Explorer.exe)
The sibling-file-count for C:\Windows\System32 is: 2 (Notepad.exe and Explorer.exe)
The sibling-folder-count for C:\Windows\System32 is: 0 (doesn't count self)

The sibling-count for C:\Windows\Notepad.exe is: 2 (SYSTEM32 and Explorer.exe)
The sibling-file-count for C:\Windows\Notepad.exe is: 1 (Explorer.exe)
The sibling-folder-count for C:\Windows\Notepad.exe is: 1 (SYSTEM32)

The sibling-count for C:\Windows\Explorer.exe is: 2 (SYSTEM32 and Notepad.exe)
The sibling-file-count for C:\Windows\Explorer.exe is: 1 (Notepad.exe)
The sibling-folder-count for C:\Windows\Explorer.exe is: 1 (SYSTEM32)



Sibling counts are not updated in realtime.
Only new or modified files/folders will have an updated sibling count.
Sibling-files/folders of a new or modified file/folder are not updated in real-time.
You'll need to refresh the search to pickup these changes.

In other words, your sibling counts might be unpredictable if the number of sibling files/folders is changing since your search.
Post Reply