
WDXcontains content plugin.
Moderators: Hacker, petermad, Stefan2, white
Thank you for this plugin.
I need help, I have the following problem:
I do want to mark all directory which have a *.txt file included (I know how to setup it in TC (colors) but I am unsure about the plugin settings).
I do not exactly know how to use the wildcards in the .INI - my solutions do not seem to work.
I also tried:
- It only needs to find any *.txt file in a directory to trigger. Without any looking into the file etc.
+
Is there are way to force it to a particular directory only? Say it will only work on C:\Temp\ - for perfomance reasons?
Thank you very much great.
GREAT WORK on TC and Plugins!!!
I need help, I have the following problem:
I do want to mark all directory which have a *.txt file included (I know how to setup it in TC (colors) but I am unsure about the plugin settings).
I do not exactly know how to use the wildcards in the .INI - my solutions do not seem to work.
Code: Select all
[Options]
FileName=*.txt
LineNumber=
UseRegEx=false
Expression=
ParseFileNames=false
ParseWithDirs=false
IncludeHidden=true
FileNamesExpression=
Code: Select all
[Options]
FileName=
LineNumber=
UseRegEx=false
Expression=
ParseFileNames=false
ParseWithDirs=false
IncludeHidden=true
FileNamesExpression=(?i)((.*.txt)|(*[.]txt))(?i)
- It only needs to find any *.txt file in a directory to trigger. Without any looking into the file etc.
+
Is there are way to force it to a particular directory only? Say it will only work on C:\Temp\ - for perfomance reasons?
Thank you very much great.
GREAT WORK on TC and Plugins!!!
Last edited by Iveco on 2009-05-31, 15:45 UTC, edited 1 time in total.
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
In theory this should work:
If it's not working, please, inform me about it. It seems that I will have to rewrite this plugin because I can't load its sources in Borland Builder any more 
BTW To force it to your path only, you should check Plugins tab and choose tc->path->Contains->C:\Temp\ in "Define selection" window.
Code: Select all
ParseFileNames=true
FileNamesExpression=(?i)(.*[.]txt)(?i)

BTW To force it to your path only, you should check Plugins tab and choose tc->path->Contains->C:\Temp\ in "Define selection" window.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
My ini is now:
My TC setup:
Define colors by file types:
Plugin: wdxcontains Prop: ContainsFile OP: = Val: true
It is not working
.
Code: Select all
[Options]
FileName=* // also tried FileName=
LineNumber=
UseRegEx=false
Expression=
ParseFileNames=true
ParseWithDirs=false
IncludeHidden=false
FileNamesExpression=(?i)(.*[.]txt)(?i)
Define colors by file types:
Plugin: wdxcontains Prop: ContainsFile OP: = Val: true
It is not working

- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
2Iveco
Just quick and smaller version:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/EmptyWDX.zip
Only one parameter (with wildcards) is supported.
Fields:
- IsEmpty(BOOL) - shows if folder is empty;
- IsEmpty(String) - same as above but gives X,
- Contains(BOOL) - checks if folder contains file which matches Filter parameter (no regexp yet),
- Contains(String) - same as above but gives X.
Just quick and smaller version:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/EmptyWDX.zip
Only one parameter (with wildcards) is supported.
Fields:
- IsEmpty(BOOL) - shows if folder is empty;
- IsEmpty(String) - same as above but gives X,
- Contains(BOOL) - checks if folder contains file which matches Filter parameter (no regexp yet),
- Contains(String) - same as above but gives X.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
Dear fenix_productions,
thank you very much!
The addon and TC is now exactly doing what I wanted. Perfect!
I didn't know TC was that powerful and has such a great community and help!
I hope I can return the favour somehow

Thought I have one more wish. May the parameter Filter support || or a seperate list? I tried specifying "Filter=*.txt||*.txt2" or seperated them by space or comma. It does not work.
Thank you very very much for all your effort!
You can do it in TC.Iveco wrote:
Dear fenix_productions,
thank you very much!
The addon and TC is now exactly doing what I wanted. Perfect!
I didn't know TC was that powerful and has such a great community and help!
I hope I can return the favour somehow
Thought I have one more wish. May the parameter Filter support || or a seperate list? I tried specifying "Filter=*.txt||*.txt2" or seperated them by space or comma. It does not work.
Thank you very very much for all your effort!
Have two separate wdxcontains installations, one for *.txt and the other for *.txt2. Then define a search for wdxcontains1 OR wdxcontains2.
Fenix, I think that another extension would be better: support different configs for different fields.
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
2Iveco
Single pipe | should work as filter separator now:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/EmptyWDX%7C_v2.zip
Single pipe | should work as filter separator now:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/EmptyWDX%7C_v2.zip
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
I've played with this plugin a little bit and created newer version:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/EmptyWDX%7C_v3.zip
Ini file has been changed to add multiple fields support. By default two columns are shown IsEmpty(BOOL) and IsEmpty(String) but any user can add up to 20 of their owns.
Parameters (x is the counter):
x_filter - files names filter; names can be separated with pipe symbol; wildcards should work correctly;
x_type - defines field type; 0 (default) means boolean, 1 means string (letter X);
x_Name - name for custom field.
Please, test it
If it works properly I will add regexp support and release as newer WDXContains version.
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/EmptyWDX%7C_v3.zip
Ini file has been changed to add multiple fields support. By default two columns are shown IsEmpty(BOOL) and IsEmpty(String) but any user can add up to 20 of their owns.
Parameters (x is the counter):
x_filter - files names filter; names can be separated with pipe symbol; wildcards should work correctly;
x_type - defines field type; 0 (default) means boolean, 1 means string (letter X);
x_Name - name for custom field.
Please, test it

If it works properly I will add regexp support and release as newer WDXContains version.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
What a nice plugin. I discovered it very late.
It is very convenient in custom columns :
- to sort folders by user defined indexes
- to show a user defined title for each folder (like comments)
For example, I created a Folder.ini file under directories and wrote the followings in it (differs folder to folder) :
But I did not succed to get wdxcontains.RegExpResult value when I define : Index=01A Index=A1 Index=A01a ... etc. I am not so familiar to regex definitions. I tried a lot of regex examples that I found after searching internet, but, none of them worked. For example : Expression=[Index=](\w{3}) Expression=[Index=](\.*) ... etc.
Can a friend show me a correct regex definition? I want to use any numbers and alphabetical characters randomly as the value of Index variable.
Thanks and regards
----------------------------------------------------
Especially to fenix_productions : Very very thank you for this helpfull plugin.
I hope you will have time for 64 version of it. Otherwise this means that I missed train
.

It is very convenient in custom columns :
- to sort folders by user defined indexes
- to show a user defined title for each folder (like comments)
For example, I created a Folder.ini file under directories and wrote the followings in it (differs folder to folder) :
I organized the wdxcontains.ini file as follows :Title of the folder
:
Index=01
:
The following custom column variables returned succesfully : [=wdxcontains.Line] -> Title of the folder and [=wdxcontains.RegExpResult] -> 01[Options]
FileName=Folder.ini
LineNumber=1
UseRegEx=true
Expression=[Index=](\d{2})
But I did not succed to get wdxcontains.RegExpResult value when I define : Index=01A Index=A1 Index=A01a ... etc. I am not so familiar to regex definitions. I tried a lot of regex examples that I found after searching internet, but, none of them worked. For example : Expression=[Index=](\w{3}) Expression=[Index=](\.*) ... etc.
Can a friend show me a correct regex definition? I want to use any numbers and alphabetical characters randomly as the value of Index variable.
Thanks and regards
----------------------------------------------------
Especially to fenix_productions : Very very thank you for this helpfull plugin.
I hope you will have time for 64 version of it. Otherwise this means that I missed train

.