[Solved] Search for paths with redundant folders

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 253
Joined: Wed Jan 09, 2013 9:06 am

[Solved] Search for paths with redundant folders

Post by w64bit »

Is there any way to search for paths containing redundant folders?
like ... \Pictures\Pictures\ ...
Last edited by w64bit on Wed Feb 28, 2024 7:31 pm, edited 1 time in total.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for paths with redundant folders

Post by NotNull »

Code: Select all

folder:regex:\\([^\\]*)\\\1$
w64bit
Posts: 253
Joined: Wed Jan 09, 2013 9:06 am

Re: [Solved] Search for paths with redundant folders

Post by w64bit »

Thank you very much!
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: [Solved] Search for paths with redundant folders

Post by NotNull »

You're welcome!

Was in a hurry so no time for further explanation at that time. Or to test it...


folder:regex:\\([^\\]*)\\\1$
([^\\]*) = Put parent foldername in capture group 1
\1 = Use the result of capturegroup 1 (=parent foldername)

So this expands to pattern \parentfoldername\parentfoldername.
Folders that match this pattern will be shown.



BTW: the same result without using regular expressions:

Code: Select all

folder:exact:parent-name:$name: 
Phlashman
Posts: 41
Joined: Sun Sep 11, 2022 4:57 am

Re: [Solved] Search for paths with redundant folders

Post by Phlashman »

folder:exact:parent-name:$name:

gave NO results? Regex folder:regex:\\([^\\]*)\\\1$ gave lots?

Version 1.5.0.1368a (x64)
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Solved] Search for paths with redundant folders

Post by void »

folder:exact:parent-name:$name:
Please try the following search:

$name:==$parentname:
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: [Solved] Search for paths with redundant folders

Post by NotNull »

Something changed between 1367a and 1368a?

1368a does indeed return zero results, whereas 1367a does give the same results as the regex one.


$name:==$parentname:
Be aware that is does a case sensitive comparison ("Test\test" will not be reported) and will report files too.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Solved] Search for paths with redundant folders

Post by void »

Thanks for testing NotNull,

Everything 1.5.0.1369a fixes an issue with passing parameters to search functions.

1368 made a change to fix a memory leak when the search parameter wasn't used.
Unfortunately, this "fix" made Everything ignore the parameter passed to most search functions.

Everything 1369a fixes the issue.



folder:exact:parent-name:$name:
should now work as expected.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: [Solved] Search for paths with redundant folders

Post by NotNull »

void wrote: Thu Feb 29, 2024 9:21 am Everything 1369a fixes the issue.
looking much better now :thumbsup:
horst.epp
Posts: 1446
Joined: Fri Apr 04, 2014 3:24 pm

Re: [Solved] Search for paths with redundant folders

Post by horst.epp »

void wrote: Thu Feb 29, 2024 9:21 am Everything 1369a fixes the issue.
folder:exact:parent-name:$name:
should now work as expected.
For me this works
folder:$name:==$parentname:
while
folder:exact:parent-name:$name:
gives no results.
This one works then
folder:exact:parent-name:==name:
Phlashman
Posts: 41
Joined: Sun Sep 11, 2022 4:57 am

Re: [Solved] Search for paths with redundant folders

Post by Phlashman »

folder:exact:parent-name:$name:

Works for me now as Void indicated?
Phlashman
Posts: 41
Joined: Sun Sep 11, 2022 4:57 am

Re: [Solved] Search for paths with redundant folders

Post by Phlashman »

Version 1.5.0.1370a (x64)

folder:exact:parent-name:$name

Now Broken again :( no results?
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Solved] Search for paths with redundant folders

Post by void »

Please make sure you use a trailing : after name

folder:exact:parent-name:$name:
Phlashman
Posts: 41
Joined: Sun Sep 11, 2022 4:57 am

Re: [Solved] Search for paths with redundant folders

Post by Phlashman »

folder:exact:parent-name:$name:

My cut and paste error. Still NO results :-( whereas v1369a did?

... Cancel that. I had the wrong filter on, switched to Everything and all good, Sorry
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Solved] Search for paths with redundant folders

Post by void »

folder:exact:parent-name:$name:
gives no results.
If you are still have trouble with this search, could you please send a debug log:
  • Clear your search box.
  • In Everything, from the Tools menu, under the Debug submenu, check Start Debug Logging.
  • Change your search to:
    folder:exact:parent-name:$name:
  • In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging.
    The Everything Debug Log will open in Notepad.
  • Please save this file to the Desktop and send to support@voidtools.com
    Privacy

I am aware of a crash when searching for:
exact:parentname:
I am working on a fix.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Solved] Search for paths with redundant folders

Post by void »

Everything 1.5.0.1371a fixes a highlighting crash when searching for:

exact:parentname:
Post Reply