Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

COLORDIR hierarchy

May
3,515
5
QUESTION:
The "Directory Colors" option and the COLORDIR variable allow specifying colors based on attributes that are not mutually exclusive, e.g., RDONLY and HIDDEN. Please document how the color is chosen for a hidden read-only directory entry. Does it depend on the order of the respective entries in the option or the variable (if defined), or is there a prioritization by TCC's code?
Please cf. with suggestion sent to tc_suggestions.
--
Steve
 
QUESTION:
The "Directory Colors" option and the COLORDIR variable allow specifying colors based on attributes that are not mutually exclusive, e.g., RDONLY and HIDDEN. Please document how the color is chosen for a hidden read-only directory entry. Does it depend on the order of the respective entries in the option or the variable (if defined), or is there a prioritization by TCC's code?

As the help says, it's done left-to-right, and it takes the first matching entry.

There's an example in the help for hidden directories:

set colordir=dirs .and. hidden:blue

Just add another .and. for rdonly.
 
Back
Top