Each file type can be assigned:
- Name: A text description
- Sort: A sort priority
- Image: Number of the image in the image file
- Colours: Foreground colour for text, selected and unselected
Background colour for text, selected and unselected
- Mask: A preceding '\ 'denotes a folder rule
Here's one example line from the #FILETYPES section from FREEDOM.CNF:
Program 19 1 0 1 1 0 **.PRG,**.TOS,**.ACC,**.TTP,**.GTP,**.APP
| | | | | | | |
| | | | | | | +--Mask for list of file types
| | | | | | +-------Text colour (selected)
| | | | | +---------Background (selected)
| | | | +-----------Text colour (Deselected)
| | | +-------------Background (Deselected)
| | +----------------Number of the corresponding image (icon)
| +----------------------Sort priority
+-----------------------------Type name (preferably brief descriptions)
(Refer to the Thing Desktop)
File type descriptions can, optionally, be displayed in the directory window by adding '%X' to the format string.
A 'Type' option has also been added to the 'Sort' popup and may be used in addition to the other sort methods. If selected the file type becomes the primary sort attribute and files are first grouped into types, according to their priority in FREEDOM.CNF, then sorted using the current secondary attribute (Name, Date, Size, Extender, No sort). Because two sorts are performed this option is slower. Be careful to place general masks after specific ones. For example, if '.' is used as the first entry all subsequent entries will be ignored.