COLORDIR hierarchy

#1
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
 

rconn

Administrator
Staff member
May 14, 2008
10,588
97
#2
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.