Page 1 of 1
Filter results independent of search query?
Posted: Fri Sep 01, 2023 4:17 pm
by wrisco
I'm trying to filter my search results without redoing the search.
Say I have these files:
Code: Select all
C:\File1
C:\File2
D:\File2
D:\File3
When I search:
Code: Select all
regex:^(C:|D:)(.*)$ !dupe:regular-expression-match-2
The results show the two files that are not duplicated on the other drive:
Code: Select all
Full Path Regular Expression Match 2
C:\File1 \File1
D:\File3 \File3
Now, when I apply a filter 'C:' I get all files on that drive:
Instead, I want the files that are not duplicated on the other drive, e.g.:
Re: Filter results independent of search query?
Posted: Fri Sep 01, 2023 4:39 pm
by therube
What happens with,
regex:^(C:|D:)(.*)$ <!dupe:regular-expression-match-2 cat C:>
?
Re: Filter results independent of search query?
Posted: Fri Sep 01, 2023 5:01 pm
by wrisco
therube wrote: ↑Fri Sep 01, 2023 4:39 pm
What happens with,
regex:^(C:|D:)(.*)$ <!dupe:regular-expression-match-2 cat C:>
?
I get files from C: that contain 'cat', including the files that also exist on D:
Basically, for this:
Code: Select all
regex:^(C:|D:)(.*)$ <!dupe:regular-expression-match-2 File C:>
I get:
Instead, I want to get this:
Which is the file on C: that does not exist on D:
Re: Filter results independent of search query?
Posted: Sat Sep 02, 2023 12:20 am
by void
dupe: is applied after your search.
You'll need to copy the filenames to a
file list slot and then perform your C: search:
- Perform your dupe search:
regex:^(C:|D:)(.*)$ !dupe:regular-expression-match-2
- Select all files (Ctrl + A)
- Copy all filenames to the clipboard (Ctrl + Shift + C)
- Search for:
filelist1: c:
- Hold down Ctrl and click the filelist1: text in the search box.
- Paste your filenames (Ctrl + V)
- Click OK.
Alternatively, please try the following search:
file:regex:^c:\\(.*)$ !fileexists:d:\\\1
fileexists:
Re: Filter results independent of search query?
Posted: Sat Sep 02, 2023 1:17 am
by wrisco
void wrote: ↑Sat Sep 02, 2023 12:20 am
Alternatively, please try the following search:
file:regex:^c:\\(.*)$ !fileexists:d:\\$1:[/rurl]
Excellent!
It does exactly what I want. Very convenient, thank you!