Help with understanding how 'ommit-results' works

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Ralf_Reddings
Posts: 84
Joined: Fri Mar 24, 2023 4:53 pm

Help with understanding how 'ommit-results' works

Post by Ralf_Reddings »

For the life of me I cant figure out this function works, I spent yesterday thinking ES Cli was the issue but this morning I discovered the same issues I was having in ES cli are also reproducible in a Everything 1.5 window

Lets say I have two directories:

Code: Select all

C:\cats
	C:\cats\cats 1.png
	C:\cats\cats 2.png
	C:\cats\cats 3.png
C:\dogs
	C:\dogs\dogs 1.png
	C:\dogs\dogs 2.png
	C:\dogs\dogs 3.png
And I added the
c:\cats
directory to the results omissions (Index > Organise Result Omissions...). Now in a Everything window (with "OMIT" not showing on the status bar)

ommit-results: c:\cats
shows 0 results, as expected since I added this directory to the result Omissions, but
ommit-results: c:\dogs
also shows 0 results, why is this directory omitted?

If I invert
ommit-results:
with
!ommit-results: c:\dogs
it will shows all 4 results for
c:\dogs
but
!ommit-results: c:\cats
also shows all 4 results for cats.

So what is even being omitted here? A search like
!ommit-results: <c:\cats| c:\dogs>
shows all items, including the omitted directory (
c:\cats
):

Code: Select all

C:\cats\
C:\dogs\
C:\cats\cats 1.png
C:\cats\cats 2.png
C:\cats\cats 3.png
C:\dogs\dogs 1.png
C:\dogs\dogs 2.png
C:\dogs\dogs 3.png
While
ommit-results: <c:\cats| c:\dogs>
shows 0 items.

I am expecting
ommit-results: <c:\cats| c:\dogs>
(or
!ommit-results: <c:\cats| c:\dogs>
) to show only items not found in Index > Organise Result Omissions...Just like what happens if I enable 'OMIT' (Index > Enable result Omissions) and then search
<c:\cats| c:\dogs>
:

Code: Select all

C:\dogs\
C:\dogs\dogs 1.png
C:\dogs\dogs 2.png
C:\dogs\dogs 3.png
I really need this function for ES and the Everything GUI search bar, as to not be bombarded with irrelevant results from many drives. Any help would be greatly appreciated!
NotNull
Posts: 5260
Joined: Wed May 24, 2017 9:22 pm

Re: Help with understanding how 'ommit-results' works

Post by NotNull »

Try it with omit-results: instaed of ommit-results: (1 M vs, 2)
void
Developer
Posts: 15350
Joined: Fri Oct 16, 2009 11:31 pm

Re: Help with understanding how 'ommit-results' works

Post by void »

omit-results: will match files/folders in your result omissions.

If you want to exclude files/folders that are in your result omissions, please use:

!omit-results:



I will change this function name as it is too confusing.

It should be something like:

!result-omissions:
Ralf_Reddings
Posts: 84
Joined: Fri Mar 24, 2023 4:53 pm

Re: Help with understanding how 'ommit-results' works

Post by Ralf_Reddings »

NotNull wrote: Fri Mar 15, 2024 7:20 pm Try it with omit-results: instaed of ommit-results: (1 M vs, 2)
Damn... I truelly am my worst enemy. Thank you NotNull. I just quickly run it again with your correction and I am getting predictable results.


@void, With your expalanation, I believe I have it figured out now. Thanks!
Post Reply