QuickSearch eXtended

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

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
Samuel
Power Member
Power Member
Posts: 1877
Joined: 2003-08-29, 15:44 UTC
Location: Brandenburg, Germany
Contact:

Post by *Samuel »

How can I add support for it?
Isnt it enough to install (plugininst) it to tcfolder, and if someone wants to install it in different folder he has to also set the ini key.

If he does so, nothing must be changed. Or am I wrong?
User avatar
Sombra
Power Member
Power Member
Posts: 795
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

2Samuel

Hello,
A suggestion (I'm not sure if it could be possible, but...). Could be implemented an inverse filter? for example: If the user write a colon (:) at begin, then an inverse match should happen.
i.e. :jpg this entry in quick search should hide all files with the word jpg.
I can read English, but... I write like Tarzan. (sorry)
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Very good idea.
vic2009
Junior Member
Junior Member
Posts: 32
Joined: 2009-05-30, 02:03 UTC

Post by *vic2009 »

I just tried TC7.5b6. Move tcmatch.* to a seperate folder and added "tcmatch" setting to wincmd.ini. When I quick search, a new tcmatch.ini automatically generated in TC folder, and the tcmatch.ini in that seperate folder didn't take effect.
User avatar
Samuel
Power Member
Power Member
Posts: 1877
Joined: 2003-08-29, 15:44 UTC
Location: Brandenburg, Germany
Contact:

Post by *Samuel »

Updated first post: Version 1.4 is available. This is my first Power Member entry :)

Code: Select all

Version 1.4
 - Added: Limited wdx plugin support. See "3. Customizing" of readme for usage.
   ! does not work with real unicode files and nonunicode plugins (The conversion from unicode filename to nonunicode filename is currently done char by char.)
   ! "ContentGetDetectString" and "Units" are ignored
   ! only untranslated Fieldnames can be used
   ! only 8192 chars are extracted for long strings
   ! DirSizeCalc doesn't work for an unknown reason
 - Added: "match_beginning" to match only when the substrings match either the beginning of the filename or a part of it which follows a space immediately (just try it)
 - Changed: A new entry with standard value is created in ini file if it doesn't exist or has an invalid value. (through ini files from previous installations)
 - Rewrote and cleaned up big parts of code. Look out for inconsistencies and bugs.
 - Fixed: Small mismatches (case sensitive and pinyin).
 - Due to a small bugfix TC 7.5 public beta 6 should be used.
2fenix_productions:
Just tried it. No need to change anything.

If you want a new path for it, just add an entry like this to the ini:

Code: Select all

[Configuration]
tcmatch=C:\Programme\totalcmd\plugins\tcmatch\tcmatch.dll
Of course you must copy the files

Code: Select all

tcmatch.dll
tcmatch.tbl
(tcmatch.pdf)
to the folder "C:\Programme\totalcmd\plugins\tcmatch\"
"tcmatch.ini" is still created whereever wincmd.ini is.


Or should I use a new default path for the install? (for example "C:\Programme\totalcmd\plugins\tcmatch\")
Additionally setting an ini entry to it?


2Sombra:
Excellent idea. Not this night :-P


wdx support
Anyone can imagine why DirSizeCalc doesn't work?
Last edited by Samuel on 2009-06-27, 02:20 UTC, edited 3 times in total.
User avatar
Samuel
Power Member
Power Member
Posts: 1877
Joined: 2003-08-29, 15:44 UTC
Location: Brandenburg, Germany
Contact:

Post by *Samuel »

2vic2009
Using the ini in new folder if it exists is a good option. I'll consider it. Perhaps this is what fenix_productions meant.
vic2009
Junior Member
Junior Member
Posts: 32
Joined: 2009-05-30, 02:03 UTC

Post by *vic2009 »

Samuel wrote:2vic2009
Using the ini in new folder if it exists is a good option. I'll consider it. Perhaps this is what fenix_productions meant.
Yes, I hope tcmatch.ini could be where tcmatch.dll is and where "tcmatch=" setting points to.
Thanks for your great work.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1956
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Samuel
Samuel wrote: Using the ini in new folder if it exists is a good option. I'll consider it. Perhaps this is what fenix_productions meant.
I meant keeping tcmatch.ini in the same folder as DLL.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Samuel
Power Member
Power Member
Posts: 1877
Joined: 2003-08-29, 15:44 UTC
Location: Brandenburg, Germany
Contact:

Post by *Samuel »

Always? I used Commander_ini_path because of possible write access problems.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1956
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Samuel
This might be problematic. Maybe you could check if tcmatch.ini exists in DLL directory? If yes, use it. Otherwise %COMMANDER_INI% path should be OK.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
cheming
Member
Member
Posts: 150
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

1.4 Bug?

1. in quicksearch, typing "zip" will display one file that named xxxx.zip
2. appending "|exe" in the quicksearch will display that ONE file too
3. backsapce a character just remain "zip|ex" will display more files
User avatar
Samuel
Power Member
Power Member
Posts: 1877
Joined: 2003-08-29, 15:44 UTC
Location: Brandenburg, Germany
Contact:

Post by *Samuel »

No. actually it also works in Version 1.3 exactly like this and is no bug.
Use "allow_empty_result=1" in ini as described here.
I also updated the ini to make it clearer.

2Christian would you please consider add an separate option like
16 - always check every file for filter
instead of merging it with allow_empty_result
Last edited by Samuel on 2009-06-26, 06:50 UTC, edited 1 time in total.
User avatar
Samuel
Power Member
Power Member
Posts: 1877
Joined: 2003-08-29, 15:44 UTC
Location: Brandenburg, Germany
Contact:

Post by *Samuel »

Should the default installpath be: "C:\Programme\totalcmd\plugins\tcmatch\"?
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

1. There's pluginbasedir setting in [configuration] in wincmd.ini. I think that you should use it.
2. Myself I will be using plugins\others\tcmatch, in case that there are more such one-off plugins and this is my suggestion for the default.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 920
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

I just noticed something strange:

With every successive [AltGr] + [<] two characters appear "<|"

Edit: I just noticed that this is probably is related to this problem.
Post Reply