Limit of file types colors.

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Have you tried using regular expressions? They can simplify several of your colorfilters.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
ThurahT
Member
Member
Posts: 112
Joined: 2003-07-24, 14:43 UTC

Post by *ThurahT »

I dont even know what that means.. I'm getting tired feeling dumb.. At least I can say I did it my way.. ; ) But ok.. How do you mean I could use regular expressions...?
Total Commander and Gaming. Only reasons left to use Windows.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

But there is an limitation that one colorfilter can handle. Its about 45 I think.
if so then we have 45*100= 4500 file type not only 1000 as you were dreaming :wink: :lol:

Nice filters and color, thanks
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2ThurahT
Open the search dialog, press F1, find where regular expressions are mentioned. There should be a link to the explanation.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

XPEHOPE3KA wrote:Have you tried using regular expressions? They can simplify several of your colorfilters.
I don't think that regex and not regex expressions can be mixed in one line.
User avatar
ThurahT
Member
Member
Posts: 112
Joined: 2003-07-24, 14:43 UTC

Post by *ThurahT »

Hehe.. yeah isn't that great ts4242.. : P Um.. xpehopeka, I dont comply.. : )
But anyways.. I have updated the filters if anyone found them interesting. I realize that its an neverending task so this is just a small fix. I removed a duplicate and added some system files and htm* files.

In the process tho I found that lister wraps the text tho its set to not wrap... I maybe should bring that up in a new thread.
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

ThurahT
In the process tho I found that lister wraps the text tho its set to not wrap... I maybe should bring that up in a new thread.
Just press "W". Or again, press F1.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
petermad
Power Member
Power Member
Posts: 14811
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ThurahT
But there is an limitation that one colorfilter can handle. Its about 45 I think
It is most likely a limitation of 255 characters, not 45 extensions.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ThurahT
Member
Member
Posts: 112
Joined: 2003-07-24, 14:43 UTC

Post by *ThurahT »

XPEHOPE3KA wrote: Just press "W". Or again, press F1.
Ofcourse.. But I wrote "tho its set NOT to..." but I now noticed that its just the default configuration that has display width set to 100 for text.. I got confused when I clearly set it to not wrap.. : )
petermad wrote: It is most likely a limitation of 255 characters, not 45 extensions.
High five.. : )
User avatar
petermad
Power Member
Power Member
Posts: 14811
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ThurahT

If you want to concatenate your colorfilter 5 and 6 into one you can do it this way:

Code: Select all

[Searches]
Pictures_SearchFor=*.acr *.ani *.b3d *.bmp *.cam *.clp *.cr2 *.crw *.cur *.dcm *.dcx *.dds *.dib *.djvu *.ecw *.emf *.eps *.fpx *.fsh *.g3 *.gif *.gsm *.icl *.ico *.ics *.iff *.img *.ima *.iw44 *.j2k *.jng *.jp2 *.jpc *.jpe *.jpf *.jpeg *.jpg *.jpm *.kdc *.ldf *.lbm *.lwf *.mng *.ngg *.nlm *.nol *.pbm *.pcd *.pcx *.pgm *.png *.ppm *.ps *.psd *.psp *.ras *.raw *.rgb *.rle *.sff *.sfw *.sgi *.sid *.swf *.sun *.tga *.tif *.tiff *.ttf *.wbmp *.wmf *.xbm *.xpm
Pictures_SearchIn=
Pictures_SearchText=
Pictures_SearchFlags=0|00000|||||||||0000

[Colors]
ColorFilter5=>Pictures
ColorFilter5Color=35980
This is due to the fact that the limit of searches strings are 4096 bytes IIRC.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ThurahT
Member
Member
Posts: 112
Joined: 2003-07-24, 14:43 UTC

Post by *ThurahT »

Hey.. High five! : D Thats a very smart way of doing it.. I will convert. I wont upate my filter sets anymore tho.. Thanks Petermad! : )

BTW.. Can anyone confirm that wrap in lister is behaving wierd..? view my filterset in the lister and it will wrap tho not set to wrap.. So "*.lbm;*.lwf" will be wrapped. And it doesnt matter what display text ammount you set it to. If you set text width to 2000/2048 and switch wrap on and off you'll see what I mean.. Making the wrap work inverted.. : S

Thanks again Peter!
User avatar
petermad
Power Member
Power Member
Posts: 14811
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Can anyone confirm that wrap in lister is behaving wierd
It has always behaved like that - I find it annoying too. ;-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply