QuickSearch eXtended

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Hello Samuel,
First you need to use the "wdx_separator_char=/" before 100
This does not work. Is the separator char not used only for searching in the next wdx group (according to tcmatch.pdf)?
wdx_text_plugin1=ISO@c:\Programy\Totalcmd\Plugins\Content\Exif\exif.wdx
This does help, thank you. Do I always need to specify the WDX plugins I intend to use as "wdx_text_pluginN"?

And last question - how can I best differ between searching in filenames and occasionally in the ISO? I have defined:

Code: Select all

[wdx]
debug_output=1
wdx_text_plugin1=ISO@c:\Programy\Totalcmd\Plugins\Content\Exif\exif.wdx
wdx_groups=|1
so I can search only filenames normally and only ISO values when prepending a "/", however, when not using the WDX search, just searching through filenames, the search is very slow compared to searching without having any WDX defined in the ini.

TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Download problem

Post by *Peter »

When I downlaod the zip, I get the file

Code: Select all

_QuickSearch eXtended 1.6.0.zip_
- yes, with underlines. It is easy to rename it, but is there a deeper sense in it?

Peter
TC 10.xx / #266191
Win 10 x64
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 »

Hacker wrote:Do I always need to specify the WDX plugins I intend to use as "wdx_text_pluginN"?
Yes this is how I designed it.

Hacker wrote:so I can search only filenames normally and only ISO values when prepending a "/", however, when not using the WDX search, just searching through filenames, the search is very slow compared to searching without having any WDX defined in the ini.
It should not be slow if you use "wdx_groups=|1" and when the searchstring contains no "/". I will examine it.

Peter wrote:When I downlaod the zip, I get the file

Code: Select all

_QuickSearch eXtended 1.6.0.zip_
- yes, with underlines. It is easy to rename it, but is there a deeper sense in it?
I also mentioned this. But it seems there is nothing I can do. You may use IE...
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 investigated. This is what I do:
- send "ContentSetDefaultParams" and "ContentGetSupportedField" at startup and send "ContentPluginUnloading" on exit

- send "ContentSendStateInformation" if directory changes also for wdx entrys that are not in use. - perhaps problems with branchview and ftp.
- call "GetFileAttributes" of file to check if its valid also every time.
- send "ContentGetValue" if value is needed.


There should be only 1 call to "ContentSendStateInformation" an normal directory. Perhaps more than one on branch view and ftp dir.
Perhaps the additional calls to "GetFileAttributes" slow it down.

You may use "debug_output=3" to see what calls are done...

You could look into the source yourself if you like...
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Samuel,
OK, I found out the biggest delay is caused by the actual logging itself. Compare debug_output=3 vs. debug_output=0 when using wdx and searching just for filenames. It takes about five seconds in a dir of 347 files.

With debug_output=0 and having some wdx defined in tcmatch.ini, the filename search is much faster, but still perceivably slower than without any wdx defined. It seems as if QSX was still doing something with the defined wdx plugins even when the search does not use them.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
st
Junior Member
Junior Member
Posts: 85
Joined: 2005-05-30, 01:39 UTC
Location: Beijing
Contact:

i used this

Post by *st »

the reason i did not use it for long, is that once the search window shows, it never timeouts unless you ESC or ENTER. that's why i use TC's built in Letter-only search.
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 »

The described behavior has nothing to do with my custom matching algorithm QSx. It should also work like this with TCs standard matching algorithm.

You could use my algorithm as well in Letter-only search.
User avatar
st
Junior Member
Junior Member
Posts: 85
Joined: 2005-05-30, 01:39 UTC
Location: Beijing
Contact:

right

Post by *st »

it works in letter-only search, mostly.
but pinyin does not work that way.
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 »

Just tried it, and it really seem to behave different.

@Christian:
Why didn't u use the new filter for letter only search mode? Is there a reason for it?
Or did I something wrong?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Samuel
Because there is no way to toggle the mode (no visible button).
Author of Total Commander
https://www.ghisler.com
lansh
Junior Member
Junior Member
Posts: 4
Joined: 2010-04-08, 06:19 UTC

Post by *lansh »

good plugin, thanks.
jo2h2
Junior Member
Junior Member
Posts: 10
Joined: 2004-11-17, 12:23 UTC

pressing | produces <| on my German keyboard ...

Post by *jo2h2 »

Hello Samuel,

installed your great add-on on TC 7.55 (now public beta 2) on Server 2008 R2 x64 German.

Every time I enter a | - which is done pressing Alt Gr < on my German keyboard I get <| in the quick search field instead of | - this is not a too big problem, but a bit annoying.

What can I do to get simply a | without that < before ?

In every other input field pressing Alt Gr < produces a | - as expected there ...

Thanks a lot !
Jo ...
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 »

There is nothing I can do, because this box is completely created and handled by TC.

2Christian:
I can confirm that when I press AltGr+| in Quicksearch-Window it results in "<|" if I use Ctrl+Alt+Letters to activate Quicksearch. (Win 7)

As a workaround you could change the mode in Configuration > Quicksearch either to "Alt+Letters" or to "Letters with search dialog". (I prefer the latter) There everything works as expected.
You may also choose another char as the "or-separator".
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 »

Updated first post: Version 2.0.0 is available.

Code: Select all

Version 2.0.0
 - Added an additional user interface, to choose the search mode, change most important search options and to use presets
 - Added an user interface to customize all options beside the content plugin options. (they still need to be changed in the ini)
 - Improved the speed, when content plugins are activated but not used. (thanks Hacker)
 - Added ini option "wdx_cache" to allow caching of content plugin searches.
 - Reworked the readme.
 - Added German readme and language for user interface.
I proudly present a user interface. Tell me if you have any problems with it. I would also like to hear suggestions.

The user interface is written in AutoHotkey. (See source)
I didnt get Unicode IniRead/IniWrite in Ahk to work.
So the current version only can handle ANSI files.

Currently 2 languages are supported:

Code: Select all

 0,English                                                    ,Deutsch
 1,Simple search                                              ,einfache Suche
 2,RegEx search                                               ,RegEx Suche
 3,Similarity search                                          ,Ähnlichkeitssuche
 4,Srch                                                       ,Srch
 5,<Presets>                                                  ,<Favoriten>
 6,General                                                    ,Allgemein
 7,Change syntax                                              ,Suchsyntax ändern
 8,Presets                                                    ,Favoriten
 9,Replacement map                                            ,Ersetzungstabelle
10,Search options                                             ,Suchoptionen
11,Match only at beginning of files/words                     ,Übereinstimmung nur am Datei-/Wortanfang
12,Case sensitive                                             ,Groß-/Kleinschreibung beachten
13,"Allow input, leading to empty results (TC restart needed)","Eingaben erlauben, die zu keinem Ergebnis führen (TC-Neustart nötig)"
14,Filter files                                               ,Dateien filtern
15,Filter folders                                             ,Ordner filtern
16,Use PinYin (for Chinese users)                             ,PinYin verwenden (für chinesische Anwender)
17,Additional user interface                                  ,ergänzende Benutzeroberfläche
18,Activate                                                   ,aktivieren
19,Show in one row (TC restart needed)                        ,einzeilig anzeigen (TC-Neustart nötig)
20,Activation chars for search modes                          ,Zeichen die Suchmodi aktivieren
21,Change                                                     ,ändern
22,Char for simple search                                     ,Zeichen für die einfache Suche
23,Char for simple search with match only at beginning        ,Zeichen für die einfache Suche mit Übereinstimmung am Anfang
24,Char for RegEx                                             ,Zeichen für die RegEx Suche
25,Char for similarity search                                 ,Zeichen für die Ähnlichkeitssuche
26,Char for srch                                              ,Zeichen für die Srch
27,Other chars                                                ,sonstige Zeichen
28,And separator char                                         ,Und Trennzeichen
29,Or separator char                                          ,Oder Trennzeichen
30,Negate char                                                ,Negationszeichen
31,Activation char for presets                                ,Favoriten Aktivierungszeichen
32,Content plugin separator char                              ,Inhaltsplugins Trennzeichen
33,New char                                                   ,neues Zeichen
34,Please enter a new char:                                   ,Bitte ein neues Zeichen eingeben:
35,Confirm                                                    ,übernehmen
36,Char                                                       ,Zeichen
37,Preset string                                              ,Favoritensuchstring
38,Add                                                        ,hinzufügen
39,Preset list                                                ,Favoritenliste
40,Chars to replace                                           ,zu ersetzende Zeichen
41,New text                                                   ,Ersetzungstext
42,Replacement list                                           ,Ersetzungsliste
43,Show help                                                  ,Hilfe anzeigen
44,Helpfile not found                                         ,Hilfedatei nicht gefunden
45,Helpfile was not found in this path:                       ,Die Hilfedatei wurde unter folgendem Pfad nicht gefunden:
If you have ideas for other / improved translations, I would be glad to hear about them.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Samuel
Could you add one more tab for WDX plugins configuration?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Post Reply