11

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?

kenorb
  • 24,736
  • 27
  • 129
  • 199
Mike L.
  • 5,617
  • 16
  • 50
  • 69

1 Answers1

3

Under Options -> Panel Options select File highlight -> File types.

Midnight Commander Panel options screenshot

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
  • 3
    How 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