Help with an Everything search function

I have used that code below for a very long time. That was before i got to know Everything. So maybe it's time to abandon the Windows search index and its service, which at the moment i'm using only for my tag searches in the big photo folder. Here's how it is at the moment.

Go "K:\Bilder\Fotografie" Openinleft
Set focus=left
FIND IN "K:\Bilder" QUERY {dlgstring|find in K}
/home\dopusrt.exe /cmd Set SHOWFILTERFILENAME=*.jpg

Now i can paste, for example

tags:< elbe schnee> !s:\

into the Everything global engine search field, which works. But i would rather have that old QUERY style input window, and that the code would place the search words inside those pointed brackets, and search in a predefined location (K:\Bilder\Fotografie), using that Set SHOWFILTERFILENAME command to filter for JPGs.

I don't know, if it's possible without scripting, but maybe someone likes to help me with that new button.

Add QUERYENGINE to your Find command or use CLI QUICKSEARCHENGINE.

1 Like

Thanks, that works. If anybody wants to use a this search, use QUERY QUERYENGINE in the code.

No, a second test shows that i don't find anything. What would the exact syntax be for my code?
And just adding that command keyword anywhere also wouldn't make sure to use this format:

tags:<schnee vögel>

FIND IN "K:\Bilder" QUERYENGINE=everything {dlgstring|find in K}

https://docs.dopus.com/doku.php?id=:reference:command_reference:internal_commands:find

No, that doesn't work, sorry. It finds 4 images for "Schnee", if i use the search field plus the correct syntax, it's over 1,700 images. I guess i turn the Windows index service back on, because typing in all that extra syntax stuff is inconvenient.

Does the everything app find the right pictures?

Yes, it does, in the Opus search field. Or in the "+" search. The Everything standalone version finds it too.

Here is an experimental button, which works halfways. The main issue is, that i doesn't find anything with more than one search string. How would i make the code to place those pointed brackets around $query? I tried two variations, but none of them gives any results.

Set Focus=left
@set query= {dlgstring}
Find CLEAR QUERYENGINE=everythingglobal QUERY tags:{$query} "K:"

This is the closest i could get so far. Isn't there a way to make $query accept multiple search strings? It works fine with only one. Another thing in this button code, the last line doesn't work for some reason.

Go "K:\Bilder\Fotografie" Openinleft
Set focus=left
@set query= {dlgstring}
Find CLEAR QUERYENGINE=everythingglobal QUERY tags:{$query} "K:"
Set VIEW=Thumbnails

What stops you from adding the angle brackets?

You might need to add

Set SOURCE=Left

before it.

It works for me, adding the brackets every time, but it's slowing me down a bit. :grin:

And it's cumbersome for some other users dealing with those unusual keys. Ideally, scripting would take care of that, internally.

I also tried Set View, but it doesn't work inside the command. Manually it does, using my view cycle button.

So, tags:<{$query}> doesn't work?

You're right, that works indeed. Thanks. By the way, i tried something similar, but i had the brackets inside the {}, which was wrong.

:+1:

Getting a handle on new tabs is tricky in a command button. Best way is a script, second best way is a user command.

Set SOURCE=left VIEW=Thumbnails
Set SOURCE=right VIEW=Thumbnails

Save UserCommandThumb.ouc to

%appdata%\GPSoftware\Directory Opus\UserCommands

... then try this:

@set query={dlgstring}
Find COLLNAME="evquery" CLEAR QUERYENGINE=everythingglobal QUERY tags:<{$query}> K:

Go "K:\Bilder\Fotografie" OPENINLEFT
Go "K:\Bilder\Fotografie" OPENINRIGHT
UserCommandThumb

Go "coll://evquery" OPENINRIGHT
UserCommandThumb
1 Like

It works now! But i have changed the codes a bit to have it all on the left side. Thanks again!

:beers:

Luckily that's not illegal :wink:

Naw, i found a loophole.

:grinning: