In my usecase, I've used container-filenames to get some compressed files, then I need to get the associated preview image for these zip files which mostly with the same file name. e.g. AAA.zip to AAA.jpg or AAA.png.
Currently I'm copying all stems in previous search result and build a "AAA"|"BBB" query manually but it's very tedious. Are there some syntax tailored for this usecase? Something like I can reference the first part of my query input and use it as a macro in same query.
How to chain search previous results?
Re: How to chain search previous results?
Is something like the following useful:
ext:png;jpg fileexists:$stem:.zip
-Finds png or jpg files where a zip file exists with the same stem.
fileexists:
ext:png;jpg fileexists:$stem:.zip
-Finds png or jpg files where a zip file exists with the same stem.
fileexists:
Re: How to chain search previous results?
Thank you for replying! Since the filename I need can only be queried by container-filenames, so even i've got this same stem file list, i still can only query out the zip files in the list but not image files. Similar to regex backreference: (container-filenames:apple) stem:\1.png|stem:\1.jpg would be so helpful.
Last edited by aiko6992 on Tue Dec 05, 2023 11:08 pm, edited 1 time in total.
Re: How to chain search previous results?
Could you please give a search example.
What are you searching for when using container-filenames: ?
Could you please give example file names in your zip and the stem search you wish to perform.
Please try something like:
*.zip regex:containerfilename:([^/]*apple[^/.]*)\.[^\.]*$ addcol:regmatch1
This would show the stems in the regmatch1 column.
To search these stems:
Select all files (Ctrl + A)
Right click under the Regular Expression Match 1 column and click Copy Regular Expression Match 1.
Change the search to:
ext:jpg;png stem:
Paste your stems.
after pasting your search should look something like:
ext:jpg;png stem:<apple|banana|orange>
(are you trying to remove this extra step here?)
With the following search:
*.zip regex:containerfilename:([^/]*apple[^/.]*)\.[^\.]*$ addcol:regmatch1
Add the following:
fileexists:$1:.jpg | fileexists:$1:.png
This will list zip files where the png/jpg exists.
!<fileexists:$1:.jpg | fileexists:$1:.png>
This will list zip files where the png/jpg doesn't exists.
What are you searching for when using container-filenames: ?
Could you please give example file names in your zip and the stem search you wish to perform.
What should \1 be replaced with here? the zip stem? the container filename match?(container-filenames:apple) stem:\1.png|stem:\1.jpg
Please try something like:
*.zip regex:containerfilename:([^/]*apple[^/.]*)\.[^\.]*$ addcol:regmatch1
This would show the stems in the regmatch1 column.
To search these stems:
Select all files (Ctrl + A)
Right click under the Regular Expression Match 1 column and click Copy Regular Expression Match 1.
Change the search to:
ext:jpg;png stem:
Paste your stems.
after pasting your search should look something like:
ext:jpg;png stem:<apple|banana|orange>
(are you trying to remove this extra step here?)
With the following search:
*.zip regex:containerfilename:([^/]*apple[^/.]*)\.[^\.]*$ addcol:regmatch1
Add the following:
fileexists:$1:.jpg | fileexists:$1:.png
This will list zip files where the png/jpg exists.
!<fileexists:$1:.jpg | fileexists:$1:.png>
This will list zip files where the png/jpg doesn't exists.
Re: How to chain search previous results?
I'm searching all compressed file which contains .vrm file, I'm searching `container-filenames:.vrm`
I'm assuming the \1 should be replaced by the individual "file instance" of the search result for the input inside the bracelets, then it's properties can be used for the search step 2.
example:
the search result i need here is pic: "jp.pokemori.vrm-converter-for-vrchat-40.1.1"|"Guri_1.01"|"Chupami_vrm"|"393.Xanadu"|"sd_kurone_kantenneko_v1.00"
I'm assuming the \1 should be replaced by the individual "file instance" of the search result for the input inside the bracelets, then it's properties can be used for the search step 2.
example:
the search result i need here is pic: "jp.pokemori.vrm-converter-for-vrchat-40.1.1"|"Guri_1.01"|"Chupami_vrm"|"393.Xanadu"|"sd_kurone_kantenneko_v1.00"
Last edited by aiko6992 on Tue Dec 05, 2023 11:57 pm, edited 1 time in total.
Re: How to chain search previous results?
Yes... I'm trying to remove these extra steps, the result I need is indeed ext:jpg;png stem:<apple|banana|orange>
Re: How to chain search previous results?
Currently, there's no way to avoid the extra copying/pasting step.
Re: How to chain search previous results?
To speed up that process, the following might help: (Untested...)
- Start with your original search to get a list of zip-files.
- 'CTRL + A' to select them all
- Right-click in the Stem column
- Select the Copy context-menu entry to copy all stems to the clipboard
(so far nothing new ... ) - In a new Everything window/tab (you can even re-use the original window) enter the following in the search bar:
Code: Select all
pic: wildcards:stem:
- Press 'CTRL +V' to paste the stems of the filenames
(There should be no spaces after stem:) - Done.
The wildcards: search modifier was added to get the exact stem, to prevent abc.zip to produce 123abc.jpg results.
exact:stem: instead of wildcards:stem: will likely get the job done too.