Is it possible to configure the Midnight Commander (Ubuntu 10.10) to show certain file and directory names differently, e.g. all hidden (starting with a period) using grey color?
Asked
Active
Viewed 5,550 times
1 Answers
3
Under Options -> Panel Options select File highlight -> File types.
See man mc in the Colors section for ways to choose particular colors by adding entries in your ~/.config/mc/ini file. Unfortunately, there doesn't appear to be a keyword for hidden files.
Dan Dascalescu
- 3,769
- 6
- 35
- 53
Dennis Williamson
- 106,229
- 19
- 167
- 187
-
Not only that there is no keyword for hidden files, I even have no success in changing an existing regex (e.g. for temp files) to match files/directories starting with a period. – Mike L. Feb 15 '12 at 18:43
-
3How exactly can entries be added to `~/.config/mc/ini`? I managed to add them to ~/.config/mc/[filehighlight.ini](https://github.com/MidnightCommander/mc/blob/master/misc/filehighlight.ini), but then you have to copy/paste there the default ones. For syntax highlight, there's `~/.config/mc/mcedit/Syntax`. – Dan Dascalescu Feb 20 '18 at 05:51
-
`M+.` to toggle hidden files. Note that `Meta` key might be `Esc`, so also try `Esc` `.` – Vassilis May 13 '20 at 09:24
