QuickSearch eXtended

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Pawel
Junior Member
Junior Member
Posts: 82
Joined: 2018-12-18, 11:54 UTC
Location: Poland
Contact:

Re: QuickSearch eXtended

Post by *Pawel »

Thanks for your reply.
I'd be happy to help but I have no C++ knowledge, unfortunatelly.
However, I am sure plenty of users use TC with Dark Colours. It looks not good with that light interface.
Would be great if You (maybe you change your mind) or someone with skills could do this. Really.

Btw, thank you for your great utility!
Have a nice day!
-Pawel
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: QuickSearch eXtended

Post by *hi5 »

Samuel wrote: 2023-08-18, 12:40 UTCFeel free to contribute.
Just curious, the tcmatch64.exe and tcmatch.exe are compiled versions of "tcmatch.ahk" which in turn is actually the Gui shown when using TCMatch?
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
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Re: QuickSearch eXtended

Post by *Samuel »

That's correct.
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: QuickSearch eXtended

Post by *hi5 »

Without an external class it is difficult to change button colors.
Here the background of the search gui is simply black: (ignore the missing icons) you can see the buttons remain the same color as non-dark
https://github.com/hi5/_resources/blob/master/tcmatch-search.png

As an example I've used an external class in the settings so I colored "some" controls, one light grey in the second tab, and blue/grey in the third tab.
Otherwise they will keep having a black (example tab 2) or white background (example tab 3) which is either to difficult to read or too bright.
Then again settings isn't something you change often I imagine so "80% dark" is acceptable I suppose.
https://github.com/hi5/_resources/blob/master/tcmatch-settings.gif

It is a few lines of code:

IniRead value Darkmode 0/1


If DarkMode
{
Gui,1:Color, Black
Gui,2:Color, Black
Gui,2:font, cwhite
}

Colouring the buttons IS possible but requires a second external class, both classes (controls & buttons) are easy to #include and easy to use.
In that case nearly all controls would require a hwnd + a call to the class to set the colors so that would add quite a bit of code, but that can be wrapped in an "If DarkMode" and if the hwnds are named wisely, no doubt looped.

Going a step further would to allow tcmatch to read the colors from wincmd.ini in case the user has made their own theme, but that would be pushing it.
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
yyang
Member
Member
Posts: 155
Joined: 2007-03-27, 11:41 UTC
Location: China

Re: QuickSearch eXtended

Post by *yyang »

Hello Samuel, I'm a long-time user of QuickSearch eXtended and benefit from it everyday. Recently I did some digging into the source code and found some minor issues like character conversions, memory leaks, etc. Is it possible to contribute code via GitHub or something else? Thanks.
#147523
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: QuickSearch eXtended

Post by *hi5 »

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)
qweewert
Junior Member
Junior Member
Posts: 6
Joined: 2017-04-29, 00:42 UTC

Re: QuickSearch eXtended

Post by *qweewert »

hi

1. how in plugin specify second sub option. DirSizeCalc for example ("DirSizeCalc.Size.MiB").What the delimiter to do this?

2.How to load native "tc" plugin eg.. (tc.path|tc.size|tc.comment, how set path to it.
Max33Verstappen
Junior Member
Junior Member
Posts: 23
Joined: 2019-10-21, 18:19 UTC

Re: QuickSearch eXtended

Post by *Max33Verstappen »

I find there's a bug when a searching string starts with "*".
In the normal file list, the search begins from the very first char (e.g.: the drive letter for the local path) of the current dir the file list is in.
E.g.:
When the file list panel is currently inside "c:\Program Files", and I type the search string

Code: Select all

*c:\Program
, the cursor can walk through all the files and folders in the list, which means I can type

Code: Select all

*c:\program files\windows defender
to match "Windows Defender" when TC is actually inside "c:\program files".
Image: https://www.imagebam.com/view/MEPGNAW

The searching string beginning with "*" behaves even more strangely in the "Directory History" list. ("*" should only make the following string search the whole path of the entries in the history list, but now it PREFIXES the current path of the LEFT file panel to the entries of the "Dir History")
E.g.:
Currently the LEFT file panel is inside the "c:\program files" and there's a dir "c:\windows\..." in the "Dir History" list, I can match this entry by typing

Code: Select all

*c:\program files\c:\windows\...
Image: https://www.imagebam.com/view/MEPGNLQ

If I'm on the RIGHT file panel, and open the "Dir History" from there, all the entries searched by string beginning with "*" are prepended by the current dir of the LEFT panel.


The consequence of this is:
When the string you want to search in the list (History or File Panel) partially coincides with the path of the current "File Panel", it's impossible to find what you want by just typing a few characters(b/c: every entry can be a match if the search string is not long enough).
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6497
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSearch eXtended

Post by *Horst.Epp »

2Max33Verstappen
There is no problem here.
If you start a search in the history with a "*" it allows matches anywhere in the string
without the * it will search from the beginning.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Max33Verstappen
Junior Member
Junior Member
Posts: 23
Joined: 2019-10-21, 18:19 UTC

Re: QuickSearch eXtended

Post by *Max33Verstappen »

Horst.Epp wrote: 2023-10-13, 15:13 UTC 2Max33Verstappen
There is no problem here.
If you start a search in the history with a "*" it allows matches anywhere in the string
without the * it will search from the beginning.
I think you didn’t read my post carefully.
I know what “*” is supposed to behave. But now search string starting with it cause it to PREFiX the path of the current FILE PANEL to the entire string.
And it also affect the normal search in the “File List”.

Please read the problem carefully.

Do NOT filter the search result, BTW. The problem won’t be presented if the results are filtered.
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: QuickSearch eXtended

Post by *AntonyD »

2Max33Verstappen
To be honest, it’s completely unclear why you put this symbol BEFORE the entire path,
which you then define in its entirety. The asterisk is only useful and logical INSIDE the path.
#146217 personal license
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6497
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSearch eXtended

Post by *Horst.Epp »

Max33Verstappen wrote: 2023-10-14, 08:51 UTC Do NOT filter the search result, BTW. The problem won’t be presented if the results are filtered.
But that's what I do.
For me the normal behavior, and as you says without your problem :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Max33Verstappen
Junior Member
Junior Member
Posts: 23
Joined: 2019-10-21, 18:19 UTC

Re: QuickSearch eXtended

Post by *Max33Verstappen »

AntonyD wrote: 2023-10-14, 09:17 UTC 2Max33Verstappen
To be honest, it’s completely unclear why you put this symbol BEFORE the entire path,
which you then define in its entirety. The asterisk is only useful and logical INSIDE the path.
  • In "History List":
    If there's only one entry in the list, for example: "C:\Windows\System32", and my LEFT PANEL is now inside "C:\Program Files\". Using TC's own search, you can't even type in "*C:\Program Files", because there's no such entry in the list. But with QuickSearch installed, I can type in "*C:\Program Files". Why? Because the LEFT FILE PANEL is in the dir "C:\Program Files", and the QuickSearch also searched it, when there's a leading "*". So I suspect the actual string being searched is "C:\Program Files\C:\Windows\System32", when there's a leading "*". Without the leading "*", of course there's no problem, because you can only search "System32".
  • In the normal File List:
    I put the "*" BEFORE the query string to test if this bug also exists in the normal file list, and I found it also exists. With TC's own search, there's no such problem (i.e.: I can't even type in "*C:\Program Files\", because there's no such path in the list)
I hope I stated it clear enough, and it would be great if you can try it yourself.
And forgot to mention that "To use the search Srch the search text has to start with a “*”.", so the leading "*" in the normal file lists also has its own job .
Last edited by Max33Verstappen on 2023-10-14, 12:54 UTC, edited 1 time in total.
Max33Verstappen
Junior Member
Junior Member
Posts: 23
Joined: 2019-10-21, 18:19 UTC

Re: QuickSearch eXtended

Post by *Max33Verstappen »

Horst.Epp wrote: 2023-10-14, 11:32 UTC
Max33Verstappen wrote: 2023-10-14, 08:51 UTC Do NOT filter the search result, BTW. The problem won’t be presented if the results are filtered.
But that's what I do.
For me the normal behavior, and as you says without your problem :)
Can you try what I stated in the previous post, please?
Steps:
Go to "C:\Program Files" from the LEFT file panel-> Open "Histroy List" from there. -> See if you can type in "*C:\Program Files\", and move the ↑ or ↓ cursor through all the entries in the list.

If you can, there's a problem.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6497
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: QuickSearch eXtended

Post by *Horst.Epp »

Max33Verstappen wrote: 2023-10-14, 12:23 UTC Can you try what I stated in the previous post, please?
Steps:
Go to "C:\Program Files" from the LEFT file panel-> Open "Histroy List" from there. -> See if you can type in "*C:\Program Files\", and move the ↑ or ↓ cursor through all the entries in the list.

If you can, there's a problem.
In this case, C:\Program Files is shown as actual on top of the list.
I can't enter C:\Program Files\ it stops after c: and shows only this in the list
but I can search for other entries from the list.
Starting with a * I can search for C:\Program Files without problems.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Post Reply