What is the order of applying colors for files/directories?

English support forum

Moderators: petermad, Stefan2, white, Hacker

Post Reply
inwenis
Junior Member
Junior Member
Posts: 2
Joined: 2025-03-13, 09:31 UTC

What is the order of applying colors for files/directories?

Post by *inwenis »

What is the order of applying colors for files/directories?

I have colors defined via Configuration->Option->Color->Define colors by file type...
The color for directories is the last in the list yet it seems the previous entries (meant for files) cause some directories to be miscolored.

Image: https://freeimage.host/i/3BReYfn
User avatar
Gral
Power Member
Power Member
Posts: 1595
Joined: 2005-01-26, 15:12 UTC

Re: What is the order of applying colors for files/directories?

Post by *Gral »

I'm guessing some previous file definition not visible in your screenshot contains the name "config".
It might be a good idea to move the Directories definition to the beginning. Another option is to exclude directories for all previous definitions.
The order of applying colors is always the one visible in the dialog window.
User avatar
petermad
Power Member
Power Member
Posts: 15917
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: What is the order of applying colors for files/directories?

Post by *petermad »

2inwenis

I guess that the third filter from the bottom:

Code: Select all

*.;
Is the cause. Directories most often don't have an extension, so they will be included when using *. as a filter, which will include all files AND folders without an extension (i.e. without a period in the name)

It is a common misconception that folders cannot have an extension.

BTW, it is not necessary to put a ; between each extension - especially not when there is only one extension in the filter.
License #524 (1994)
Danish Total Commander Translator
TC 11.51rc2 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1390a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Gral
Power Member
Power Member
Posts: 1595
Joined: 2005-01-26, 15:12 UTC

Re: What is the order of applying colors for files/directories?

Post by *Gral »

How on earth does a light blue filter cause an unwanted red tint to directories?
inwenis
Junior Member
Junior Member
Posts: 2
Joined: 2025-03-13, 09:31 UTC

Re: What is the order of applying colors for files/directories?

Post by *inwenis »

It might be a good idea to move the Directories definition to the beginning
this solved the issue, thanks!
Another option is to exclude directories for all previous definitions.
didnt' want to do this cuz I keep my colors in a separate color.ini and seraches are persisted in the wincmd
Post Reply