mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-25 13:57:00 +03:00
4afc04eedc
Added support of filenames highlighting in panels. Now rules of highlighting described into external file filehighlight.ini Number of highlight rules is unlimited (in opposite to X-Stranger patch). Highlight will made by: * file type (directory, regular, symlink, special device etc.) * extensions of filenames (ends of filenames) * regular expressions Big thanks to X-Stranger <x@linux.by> for idea and to Alexey Kaminsky <alexeykaminsky@gmail.com> for testing. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
31 lines
764 B
Plaintext
31 lines
764 B
Plaintext
Main section [filehighlight] contain key names as highlight groups and values as color pairs
|
|
color pair described as 'foreground;background'. 'background' may be omited.
|
|
|
|
other sections describe filegroup of highlight.
|
|
Keys in these groups:
|
|
|
|
type
|
|
- file type. if present, all other option ignored;
|
|
regexp
|
|
- regular expression. If present, 'extensions' option ignored;
|
|
extensions
|
|
- list of extensions of files. Separated by ';' sign.
|
|
|
|
'type' key may have values:
|
|
|
|
- FILE - all files.
|
|
- FILE_EXE
|
|
- DIR - all directoryes
|
|
- LINK_DIR
|
|
- LINK (all links except stale link)
|
|
- HARDLINK
|
|
- SYMLINK
|
|
- STALE_LINK
|
|
- DEVICE (all device files)
|
|
- DEVICE_BLOCK
|
|
- DEVICE_CHAR
|
|
- SPECIAL (all special files)
|
|
- SPECIAL_SOCKET
|
|
- SPECIAL_FIFO
|
|
- SPECIAL_DOOR
|