Modify LOADSEARCH or new command with parameters

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Modify LOADSEARCH or new command with parameters

Post 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.
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Find files: plugins, using properties of current file?

Post 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
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

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

Post 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
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

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

Post by *Gral »

hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

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

Post 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.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Modify LOADSEARCH or new command with parameters

Post 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
Post Reply