Coloring folders with certain symbols

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Coloring folders with certain symbols

Post by *bogordo »

Hi,
Just wondering if it's possible to color all folders starting with an underscore ("_folder")?? or two of them ("__folder"), between parentheses...etc?

I tried the comment workaround and it's fine, but this would be nice too, tried some search filters but the search code was looking at all levels, thus, in "_photos" it gives me all folders inside "_photos", and i only want the underscore one...

Best regards,
TC license #346559
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Coloring folders with certain symbols

Post by *petermad »

Something like this for _folder

Code: Select all

[Searches]
_folder_SearchFor=_folder
_folder_SearchIn=
_folder_SearchText=
_folder_SearchFlags=0|002002000020||||||||22221|0000|||

[Colors]
ColorFilter1=>_folder
ColorFilter1Color=33023
Change "1" in "ColorFilter" to match your last filter plus one - then use TC's "Define colors by file type" to move it up in the top of the list
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Coloring folders with certain symbols

Post by *bogordo »

Thanks petermad, tried but it's not working...any idea?? :(

Image: https://i.ibb.co/ZLd9zxt/CAPT-0020.png
Image: https://i.ibb.co/d0GdrsT/CAPT-0021.png
Image: https://i.ibb.co/Yy2DJVW/CAPT-0019.png
TC license #346559
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Coloring folders with certain symbols

Post by *petermad »

I think I misunderstood you - that you only wanted directories named _folder to be colored, but it seems that you want ANY folder with and underscore in the start to be colored.

To do that then just change this line:

Code: Select all

_folder_SearchFor=_folder
to

Code: Select all

_folder_SearchFor=_*
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
bogordo
Member
Member
Posts: 150
Joined: 2019-12-06, 09:07 UTC

Re: Coloring folders with certain symbols

Post by *bogordo »

Ok you are my TC hero, yep this was my goal, was guessing the code with no luck...

This could be a really useful implementation for organizing my folders :)

Working perfect now, thank you very much!!
TC license #346559
Post Reply