Page 1 of 1

Modify LOADSEARCH or new command with parameters

Posted: 2022-05-21, 12:31 UTC
by Gral
Sometimes i think about possibility of search with search dialog window filled with properties based on file under cursor, kind of search duplicate of current file or just load from command options, not from saved search, so command with parameter would be useful and, as LOADSEARCH already exists and works other way, it could be modified to accept modifiers and parameters for load properties of file under cursor additionally or new command called e.g. SEARCHFILES or SEARCHSIMILARFILES working way similar to OPENATTRIBUTES.
Such a command should support many modifiers and parameters.
Each of modifers alone should load properties from file under cursor, while modifiers with parameters should allow change loaded property according to value of parameter, e.g.

N - name, <prefix>N<suffix>, N[n-n](part)
E - extension, <prefix>E<suffix>, E[n-n](part)
S - size "S-" smaller, S+ bigger
D - date "D-" older, "D+" newer
T - time "T-" older, "T+" newer
other options
E - use Everything for search
A - attributes, arhscde
C - search in archives
X - search text - wcrhfadu8op - as in dialog window
F - duplicate, n - name, s - size, c - content, p - plugin fields
P - search path only (and below with +nn number deep)
R - search drives, the same, other defined by letters
and so on.

This is for consideration how this should work when multiple files are selected.
Search for all, or e.g. first 20 names is a good start point
Maybe should search also for files sizes and dates in range of selected files.

For really complex searches loading saved search is probably better choice.

Find files: plugins, using properties of current file?

Posted: 2024-07-07, 21:25 UTC
by hi5
I want to find files based on one (or more) of the current properties of the current file (file under the caret).

Is there a way to pass on such information to the plugins? e.g. I have a file of 987 bytes, can I pass on the value 987 to the property tc.size= plugin?

Say something like tc.size=active

Where active will always take the file size of the current file under the caret. Other properties also - where applicable of course (writetime, creationdate, etc).

(I could do it using ahk of course)

Edit: so you can save the search and use it later or create shortcut, button, etc

Re: Find files: plugins, using properties of current file?

Posted: 2024-07-08, 12:46 UTC
by petermad
This seems to be the same as suggested here: https://ghisler.ch/board/viewtopic.php?t=49163

Anyway - I support being able to use plugin search with the 0utput from other plugins: https://ghisler.ch/board/viewtopic.php?p=336425#p336425

Re: Find files: plugins, using properties of current file?

Posted: 2024-07-08, 12:50 UTC
by Gral

Re: Find files: plugins, using properties of current file?

Posted: 2024-07-08, 21:11 UTC
by hi5
I missed (and didn't find) the post by Gral so these posts could be moved there.

Finding a duplicate of the current file is exactly what I was trying to do (as gral mentions in his post), but I thought starting with "current properties" would be a good start.

Re: Modify LOADSEARCH or new command with parameters

Posted: 2024-07-08, 21:36 UTC
by white

Moderator message from: white » 2024-07-08, 21:31 UTC

Merged topic
» Find files: plugins, using properties of current file?
with topic
» Modify LOADSEARCH or new command with parameters