Coloring by filename

English support forum

Moderators: Hacker, petermad, Stefan2, white

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

Coloring by filename

Post by *bogordo »

I need different colors for "G" and "A" files, i could create a search to coloring "2101_G*.*" and "2101_A*.*", this works, but in different projects the "2101" changes so i would need to create again and again with 2101, 2103.

I tried creating a custom search for "_G*.*" but does not work, any clues? with regex maybe?

Another option is to create a Search for "comments" but my comments are numbers, can i specify for "G" files as comments with only "two digits", for "A" three digits...??

2101_G.01.01_name1.doc
2101_G.01.02_name2.doc
...

2101_A.01.02_name3.doc
2101_A.01.02_name4.doc
...
TC license #346559
User avatar
Dalai
Power Member
Power Member
Posts: 9945
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Coloring by filename

Post by *Dalai »

Code: Select all

*_G*
should work. If you want to narrow this quite broad search term down more you could use something like this RegEx

Code: Select all

^\d{4}_G\..+
or

Code: Select all

^\d{4}_G.+
or something similar, depending on actual filenames.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
bogordo
Member
Member
Posts: 172
Joined: 2019-12-06, 09:07 UTC

Re: Coloring by filename

Post by *bogordo »

The first method is working just perfect!! thank you very much!!

Best regards,
TC license #346559
bogordo
Member
Member
Posts: 172
Joined: 2019-12-06, 09:07 UTC

Re: Coloring by filename

Post by *bogordo »

Hi,

Is there any way of restricting this only to Files, right now is affecting Files and Folder...

Thank you,
TC license #346559
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Coloring by filename

Post by *Gral »

Check "Attributes" and uncheck "Directory" on "Advanced" tab when you define find conditions.
http://gral.y0.pl/tc/FindFilesAdvanced.png
bogordo
Member
Member
Posts: 172
Joined: 2019-12-06, 09:07 UTC

Re: Coloring by filename

Post by *bogordo »

Perfect, thank you very much!!

p.d.: vibrant colors in your capture!! ;)
TC license #346559
bogordo
Member
Member
Posts: 172
Joined: 2019-12-06, 09:07 UTC

Re: Coloring by filename

Post by *bogordo »

Hi again, could i prevent PDF files to be colored? or said differently: could i only color DWG extension files?
TC license #346559
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Coloring by filename

Post by *Gral »

Code: Select all

*_G* | *.pdf
or

Code: Select all

*_G*.dwg
(if we still talk about first question too)
Part after | is for exclusion.
Post Reply