tcmatch in pb5

English support forum

Moderators: white, Hacker, petermad, Stefan2

cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

tcmatch in pb5

Post by *cheming »

pb5 added such feature and who can explain how to use it ?

07.06.09 Added: External quick filter support (tcmatch.dll): MatchGetSetOptions informs dll about quick search options and returns sum of: 1: override internal search, 2: no leading/trailing asterisk, 4: file name with path, not just name, 8: allow empty result: longer search strings can return more results
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2cheming
I don't think we can until someone (Samuel?) writes DLL for it.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

INI entry ?

Post by *Clo »

2cheming

:) Hello !

• We assumed (maybe wrongly) that the History.txt paragraph you quote is an INI entry, it looks like this,
but is neither clearly indicated, nor has a target section, that's quite strange…
- The “TCMATCH.DLL” exists indeed in the Samuel's tool package, it seems that it could be used directly
as located in the TC folder, plus setting the above instructions in the INI - just a wild guess… :roll:
- Paul and I updated the Tutos in such a way, whether it's wrong, we'll correct them, of course… 8)

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Its no INI entry. I just tried a little bit. It works like this:

In the tcmatch.dll create a function named:

Code: Select all

int __stdcall MatchGetSetOptions(int Status)
The input integer "Status" is the sum of:

Code: Select all

1: Configuration > Quick Search > Exact name match > Beginning
2: Configuration > Quick Search > Exact name match > Ending
The return integer is the sum of:

Code: Select all

1: override internal search
2: no leading/trailing asterisk
4: file name with path, not just name
8: allow empty result: longer search strings can return more results
I will try to change my dll soon, so that the switches are supported by it.

2cheming:
You have to adjust the Chinese Quicksearch separately.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

We remove

Post by *Clo »

2Samuel

:) Hello !

• Thank you, that's important to hear.

• Anyway, I don't understand why Ch. Ghisler has announced this support without more explanation¦warning. :?

• We remove that from the Tutos INI chapter, but keep the texts in the case…

:mrgreen:  VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
vic2009
Junior Member
Junior Member
Posts: 32
Joined: 2009-05-30, 02:03 UTC

Post by *vic2009 »

I have a little request concerning tcmatch.dll, along with tcmatch.tbl. Could these 2 files be put into some place other than TC folder? For example, put them into "LANGUAGE" folder, or a new folder.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

2Clo
Christian did announce here that he wanted to do an function for the dll. So it was clear for me.
But I agree that there is only very few info in the changelog. (and as far as I could see nowhere else is some info about the tcmatch.dll [without his sample plugin])

What do you mean with warning?

2vic2009
Whats the reason for putting them in a separate folder?
I wouldnt expect dlls in the language folder. And as you can see here its not only about language.

Currently its not possible. You could only adjust the path to "tcmatch.tbl" in the "tcmatch.dll"-source on your own.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Nothing more---

Post by *Clo »

2Samuel

:) Again…
What do you mean with warning?
- Nothing more than the word means , i.e. :
"Warning! this can't be used directly yet… blah blah…" or so…

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

I wouldnt call it warning. Its a new feature that doesnt bring harm for anyone.
As already said: More informations would have been useful.
vic2009
Junior Member
Junior Member
Posts: 32
Joined: 2009-05-30, 02:03 UTC

Post by *vic2009 »

Samuel wrote:Whats the reason for putting them in a separate folder?
These 2 files are actually some kind of "add-on", right?
Maybe "language" folder is not the best choice, I hope these files can be put in a separate folder, just like the way we treat other plugin/addon files. Not mess with TC files.
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

So as it list files, it coulld be a lister plugin? :)
But I think that the TC needs the dll in the main directory.
Otherwise, the ini will be then still in the main directory, not in the plugin.

mf
Bankster - Word of the Year 2009
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Support++ for additional INI parameter to define tcmatch.dll location (same way as for icons libraries).
Mikefield wrote:Otherwise, the ini will be then still in the main directory, not in the plugin.
And that's because…?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

fenix_productions wrote:And that's because…?
There was a lot of discussions here about the ini place. I prefer the plugin directory,
but many plugins store the ini's meantime in the %commander_path%. :(
So I think that Samuel will do it too.

mf
Bankster - Word of the Year 2009
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Mikefield
This is developer's will where to store plugin settings.

There is one thing though:

plugins can get/set INI location via xSetDefaultParams method implementation BUT there is nothing like that for tcmatch.dll.

So other developers decided to go for default location proposed by TC but tcmatch don't have such possibility. It is completely up to developer to choose the place. Of course, he can save setting giving file name only but this would be asking for troubles.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Samuel
You figured out the right parameters before I could announce the new function, good work! :)

Yes, I will consider to add a location string to wincmd.ini for tcmatch.dll.
Author of Total Commander
https://www.ghisler.com
Post Reply