Detect strings for lister plugins

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
Gregory
Junior Member
Junior Member
Posts: 89
Joined: 2003-02-08, 10:04 UTC
Location: Kiev, Ukraine

Detect strings for lister plugins

Post by *Gregory »

I use nearly a dozen of lister plugins. And I've noticed that it takes a long time for lister to load (for the first time).
So I've created detect strings for lister plugins that don't have them.
Now lister runs significantly faster.
So here are these strings:

(add strings to [ListerPlugins] section of wincmd.ini,
you need to change a number at the begining of the line to plugin number in your list of plugins)

IEview (zero extension is added to handle directories - directories with any extensions will be passed to IEview)
1_detect="ext=""|ext="HTM"|ext="HTML"|ext="PLG"|ext="MHT"|ext="XML"|ext="XSL"|ext="PDF"|ext="DOC"|ext="DOT"|ext="XLS"|ext="VSD"|
ext="PPT"|ext="ASP"|ext="DRW" | ext="LWP" | ext="PRZ" |ext="WPD"|ext="QPW"|ext="ZIP"|ext="123"|ext="GZ"|ext="TAR""

Fileinfo
4_detect="ext="COM"|ext="EXE"|ext="DLL"|ext="SYS"|ext="DRV"|ext="WFX"|ext="WLX"|ext="WCX"|ext="SCR"|ext="VXD"|ext="OCX"
|ext="TSP"|ext="TSK"|ext="TLB"|ext="RLL"|ext="OLB"|ext="AX"|ext="ACM"|force"

Hpg_ed
5_detect="ext="BAS"|ext="C"|ext="CPP"|ext="CXX"|ext="DAT"|ext="H"|ext="HPP"|ext="HTM"|ext="HTML"|ext="INC"|ext="INI"|ext="INT"|
ext="JAVA"|ext="ME"|ext="PAS"|ext="PL"|ext="PM"|ext="PY"|ext="PYC"|ext="SQL"|ext="TXT"|ext="VB"|ext="VBS"|(force & (size<100000000))"

SynUs
6_detect="ext="PAS"|ext="DPR"|ext="DPK"|ext="INC"|ext="C"|ext="CPP"|ext="H"|ext="HPP"|ext="FOR"|ext="VBS"|ext="BAS"|ext="JAVA"|ext="HTM"|
ext="HTML"|ext="JS"|ext="PHP"|ext="PHP3"|ext="PHTML"|ext="XML"|ext="XSD"|ext="XSL"|ext="XSLT"|ext="DTD"|ext="PY"|ext="SML"|ext="BAT"|
ext="CMD"|ext="PL"|ext="PM"|ext="CGI"|ext="DSP"|ext="RDF"|ext="RIF"|ext="RMF"|ext="RXF"|ext="GWS"|ext="PRG"|ext="SQL"|ext="ASM"|
ext="DML"|ext="GEM"|ext="DFM"|ext="XFM"|ext="TCL""

Imagine
10_detect="ext="JPG"|ext="JPEG"|ext="GIF"|ext="PNG"|ext="BMP"|ext="PCX"|ext="TGA"|ext="PSD"|ext="TIF"|ext="TIFF"|ext="LBM"|ext="IFF"|
ext="FLI"|ext="FLC"|ext="SPR"|ext="PCD"|ext="JPC"|ext="JP2"|ext="J2K"|ext="PBM"|ext="PGM"|ext="PPM"|ext="RAS"|ext="SGI"
|ext="RGB"|ext="BW""

ICLview (plugin returns a string but I've changed it a little)
2_detect="ext="ICL"|ext="ICO"|(force & (ext="EXE"|ext="DLL"|ext="WFX" |ext="SCR"))"

But when I install a plugin or just move it using LS Plugins button in Lister configuration some of these lines became corrupted,
maybe they are too long...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

To plugin authors:

It would be nice if you could create such detect strings yourself! It would keep TC from loading your plugin every time lister is loaded. The function ListGetDetectString is used to set the detect string.
Author of Total Commander
https://www.ghisler.com
oblomov
Junior Member
Junior Member
Posts: 98
Joined: 2003-04-04, 15:41 UTC

Post by *oblomov »

An important feature I would like to see in TC (ok, it's probably too late for TC6 ...) is the ability to trigger Lister without loading plugins. I know I can set the option, but if in normal usage I want plugins to load, and only once want to directly view the raw file, I have to wait. Something like Ctrl+F3 to cm_ListRaw
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2oblomov

you can use the external lister program which AFAIK doesn't work with plugins

http://www.ghisler.com/lister/
Jonas
Senior Member
Senior Member
Posts: 325
Joined: 2003-05-27, 16:59 UTC
Location: Germany
Contact:

Post by *Jonas »

no. the external version of the lister also uses the plugins (same config). I use the external version for example as HTML-source-lister for Opera.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Jonas

Where is the "LS-Plugins"-Button in the Config-Dialog?
Jonas
Senior Member
Senior Member
Posts: 325
Joined: 2003-05-27, 16:59 UTC
Location: Germany
Contact:

Post by *Jonas »

like I said... it uses the same config like the internal lister. Here you can load plugins via the option-dialog and they are automaticly used in the external version too...
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Jonas


I wanted to show a way to show lister without plugins. At least on my computer with the most recent external lister it's possible.


Anyway, I'm interested on how to make the external lister using plugins.

The external lister config dialog looks different from the one in Total Commander. Can you confirm this?
http://members.fortunecity.de/lefteous/lister_cfg.htm

How to use the same lister config in internal and external version. The /I switch doesn't work for me.
Jonas
Senior Member
Senior Member
Posts: 325
Joined: 2003-05-27, 16:59 UTC
Location: Germany
Contact:

Post by *Jonas »

The config looks exaclty the same. And in fact, I haven't done anything to make it work... I simply installed the external version because I wanted to use it as HTML-source-lister for Opera. I told Opera to use the external Lister, pressed Alt-F3 and the lister started with the SynUs-plugin.

Perhaps inireloc has something to do with it... I used this software once to put the .ini-files in TC's Programm-dir. The External Lister is installed in a subdir of this.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Jonas

It seems to be somekind of mysterious. Maybe the author can help here.
Eugene
Junior Member
Junior Member
Posts: 17
Joined: 2009-11-17, 20:59 UTC

Post by *Eugene »

Christian, the fact that TC doesn't requery ListGetDetectString (even when plugin is updated) really stresses me.

How do you think, is it good if my plugin will update detect string in wincmd.ini itself? TC calls ListDefaultParamStruct, telling us wincmd.ini directory; then I could use WritePrivateProfileString. What do you say?
Post Reply