Talk:Midnight Commander

From ArchWiki
Latest comment: 3 July 2023 by Gonciarz in topic Opening files

Completion sequence

If I got mc(1) right this should work, but it doesn't:

Escape sequences may be defined in ~/.config/mc/ini under the [terminal:foo-term] section. F9 > Options > Learn keys provides a limited interface to these settings.

To change the completion key (Alt+Tab by default), find the desired escape sequence through cat or other means, and add it to the complete key. For example:

[terminal:rxvt-unicode-256color]
complete=\\t

-- Alad (talk) 10:30, 13 June 2015 (UTC)Reply

Just pointing out that here, and at the time of writing, the completion key is, by default, Esc+Tab. Regid (talk) 03:15, 16 December 2020 (UTC)Reply

Mouse support with unusual TERM

For some terminal definitions like st, st-256color, tmux, and tmux-256color, mouse support doesn't work and has to be forced with mc -x.

[1] seems to suggest it checks for kmous/smcup/rmcup, but these are present in all the above.

[2] has a few hardcoded entries, but AFAIK, those are for key mappings. -- Alad (talk) 15:44, 27 February 2016 (UTC)Reply

Opening files

An easy way to pick a tool for opening a given extension is to install perl-file-mimeinfo. This package provides mimeopen and mimetype. After running you may change an application that is going to open a given file types.

mimeopen -a file.pdf
mimeopen -d file.pdf

—This unsigned comment is by Gonciarz (talk) 21:36, 3 July 2023 (UTC). Please sign your posts with ~~~~!Reply