Midnight Commander (mc)

By | 21 Jun 2009

Open drop-down box

To open a drop-down box (like those on the FTP link… dialog), press Alt+H.

ZIP contents not shown

The later versions of unzip have a slightly different output format but the uzip-module still expects the old one. To fix this, edit the file /usr/share/mc/extfs/uzip (as root) and change the line

# Set this to 1 if zipinfo (unzip -Z) is to be used (recommended), otherwise 0.
my $op_has_zipinfo = 0;Code language: PHP (php)

to

# Set this to 1 if zipinfo (unzip -Z) is to be used (recommended), otherwise 0.
my $op_has_zipinfo = 1;Code language: PHP (php)

Highlighter

Download the above files to ~/.mc/cedit and add the following definitions (as needed) to ~/.mc/cedit/Syntax. If you don’t have this file, copy it from /usr/share/mc/syntax/ first.

file ..\*\\.ahk$ AutoHotkey\sFile
include autohotkey.syntax

file ..\*\\.(tpl|TPL)$ eZPublish\sTemplate
include eztemplate.syntaxCode language: PHP (php)

Leave a Reply

Your email address will not be published. Required fields are marked *

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.