Disable lister plugin for certain types of files

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
yxz11
Junior Member
Junior Member
Posts: 18
Joined: 2003-11-20, 00:45 UTC

Disable lister plugin for certain types of files

Post by *yxz11 »

In my wincmd.ini, I have

5=%Commander_path%\plugins\lister\wlx_synplus_2_6_4\SynPlus.wlx
5_detect=([0]!="M" | [1]!="Z" | [2]!="P")

for Synplus. Regarding this, I have two questions:

1. What does ([0]!="M" | [1]!="Z" | [2]!="P") mean and where can I find the document for it?

2. I would like to disable Synplus for "txt", "htm" and "html" files, how can I do it? Specifically, I'd like to use internal viewer for these types of files.

Your help is appreciated.
waelder
Junior Member
Junior Member
Posts: 62
Joined: 2003-02-11, 13:13 UTC

Post by *waelder »

What does ([0]!="M" | [1]!="Z" | [2]!="P") mean and where can I find the document for it?
Its in the LS-Plugin writer's guide. You can download it from the TC homepage. Look at the description of ListGetDetectString.

--Helmut
yxz11
Junior Member
Junior Member
Posts: 18
Joined: 2003-11-20, 00:45 UTC

Post by *yxz11 »

Waelder,

Thank you very much, here is what I did and it worked:

5_detect=([0]!="M"|[1]!="Z"|[2]!="P")&ext!="TXT"&ext!="HTM"&ext!="HTML"
Post Reply