M-Commander
v6.2.0, based on GNU mc 4.8.33

M-Commander

Based on GNU Midnight Commander

The package is called mcommander and installs next to the distribution's mc. It grows outside the core: panel contents come from loadable plugins, scripts talk to it through a versioned host ABI, and the shell runs in an embedded terminal.

Debian · Ubuntu · Fedora · Arch · macOS Commands: mcommander (or mc6), mcedit6, mview, mcdiff6
Two panels in the gruvbox256 skin with the Plugin panel list open
Two panels in the gruvbox256 skin and the Plugin panel list.

Installing

Packages for every release

Packages for Debian, Ubuntu, Fedora, Arch and macOS are attached to every GitHub release. The package is called mcommander and installs next to the distribution's mc instead of replacing it.

Ubuntu 24.04, 26.04PPA
sudo add-apt-repository ppa:bluepanels/mcommander
sudo apt update
sudo apt install mcommander mcommander-plugins mcommander-lua
macOS, LinuxHomebrew
brew install blue-panels/tap/mcommander
Debian 13files from the release
sudo apt install ./mcommander{,-plugins,-lua}_*debian13*_amd64.deb
Fedorafiles from the release
sudo dnf install ./mcommander{,-plugins,-lua}-6*.x86_64.rpm
Archfiles from the release
sudo pacman -U ./mcommander{,-plugins,-lua}-6*-x86_64.pkg.tar.zst
From sourcemeson
git clone https://github.com/blue-panels/mcommander.git
cd mcommander
meson setup build --prefix=/usr --sysconfdir=/etc
meson compile -C build
sudo meson install -C build

The latest release has .deb files for Debian 13 and Ubuntu 26.04 (amd64, arm64), .rpm for Fedora (x86_64, aarch64), .pkg.tar.zst for Arch, and a .dmg and .pkg for macOS. On arm64 (aarch64 for Fedora), change the architecture in the file name. INSTALL lists the build dependencies.

The main command is mcommander, with mc6 as a short alias. The editor, viewer and compare view are mcedit6, mview and mcdiff6, and mctree and mcstruct start the structured views. None of them takes the names of GNU mc, so both can be installed at once. The user directories are ~/.config/mc6, ~/.local/share/mc6 and ~/.cache/mc6. On first start the matching mc directory is copied into each new one, and the original is left untouched.

Panel plugins

A panel that shows more than files

A plugin panel works like a regular file panel: navigation, viewing, and the standard operations through F4, F5 and F6. Plugins add their own data sources, menu entries, settings and help, and keep a navigation history of their own. One plugin can hand another an open seekable stream, and magic.ini routes a file to the plugin that understands it. That is what lets an archive on a remote host open without downloading it whole.

PluginWhat it does
arcmcArchives in a panel, on libarchive. Browse nested archives, add and delete files, create ZIP, 7z, TAR and CPIO, set compression, passwords and encryption, extract in bulk with progress, speed and remaining time. Paths are checked on extraction so an archive cannot escape the target directory. Guide
mcstructStructured binary viewer and editor. A text def-file (STL5, compatible with the DOS Struct Look) turns a firmware image, a header or a table file into a tree of named fields synced with a hex dump. Ships def-files for ELF, PE, ZIP, DBF, MBR, FAT, uImage, DTB, PNG, BMP and WAV. Guide
duplicatesFinds copies of files in a directory, and in the other panel too, by size, name or content. Files are compared by size, then by a hash of their first and last 4 KiB, then by a hash of the whole file, and the hashes are kept for the next search. "Similar content" also groups pictures that look the same and texts that differ only in line endings and spaces. The other panel can be a reference directory whose files are never moved or deleted.
GitCommits, branches and changed files with the built-in diff viewer. All the changes of a branch in one folder, merge conflicts resolved in the three-way merge on Shift-F3. Repositories can be saved as favourites.
GitHubThe pull requests and issues of a repository, with the description in Quick View.
PostgreSQLServers, databases, schemas and tables. F3 on a table shows its SQL and its first rows as a table, Alt-F3 opens a query console.
mcpeek.NET assemblies as trees of references, namespaces, types and members. Decompiled C# or IL, usages across assemblies, export of namespaces as projects.
DockerContainers, their files, images, volumes, networks, mounts, command execution and logs. Local and SSH profiles. Log fetch parameters and a formatting pipe are set right in the viewer; a formatter for .NET and Serilog logs is included.
KubernetesPods, nodes, services and workloads through kubectl. Contexts, namespaces, describe, YAML, exec, resource deletion and log viewing.
MongoDBConnections, databases, collections and documents. Filtering, projection, sorting, limits, paged reading of large collections and document editing. F3 on a collection shows its documents as a table, Alt-F3 opens a query console.
S3Upload, download and delete objects, create buckets, view metadata, stream objects into the viewer. Works with MinIO, Ceph and Cloudflare R2.
SQLiteA database as a panel of tables, views and rows. F3 shows a table, a view or a page of rows as a table. Read only.
FTP / SFTPFTP and FTPS with active and passive mode, proxies, keepalive and IP version settings. SFTP with password and key authentication, compression, progress and streaming. These replace the old ftpfs and sftpfs.
SambaSMB servers and their shares.
ACL editorPOSIX and Windows access control lists, from the Attributes menu.
systemd, shell, External PanelizeUnits, shell connections, and a panel filled by a command's output.

Finding duplicates

Command > Find duplicates... runs the search in the background, and "Show found" opens a panel with the groups. Similar pictures are grouped by a perceptual hash, Quick View shows the one under the cursor, and F8 asks before a group loses its last copy.

Find duplicates: similar pictures in groups, a picture in the quick view, F8 asking before a group loses its last copy

A database as a panel

Tables, views and the schema of an SQLite file, each shown as a table on F3. MongoDB and PostgreSQL work the same way.

A SQLite database as a panel: tables, a view and the schema shown as tables on F3

GitHub pull requests

The merged pull requests of the repository, one of them in Quick View.

The GitHub panel: the merged pull requests of the repository, one of them in the quick view

Creating an archive from tagged files

Tag files, open the pack dialog, pick the format and compression, watch the progress. The built-in tar and cpio filesystems are gone; arcmc does that job now.

Creating a 7z archive from tagged files in the arcmc panel

mcstruct on a DBF file

Header fields with the hex dump and the def-file in sync, and the records as a grid. Start it with mcstruct FILE, Shift-F4 in the viewer, or F3 on a file that magic.ini hands to it.

mcstruct showing a DBF file as a tree of fields next to a hex dump

A plugin module is opened the first time it is used, so the plugins do not slow down the start. User plugins are loaded from ~/.local/lib/mc6/panel-plugins. The plugins are tried in a Docker sandbox described on the QA testing page.

Scripting

Lua as a plugin, not a core feature

Lua support is a plugin that speaks the core ABI, so the language is not built into mc. A script can read and change editor documents in transactions, provide panels and file operations, supply the viewer with generated content, build native dialogs and full screens of widgets, run processes and answer events.

Scripts are managed in the Manage Plugins dialog, where a Lua package can also have its own settings dialog. Scripts can use the syntax engine of the editor through mc.syntax.scan(). Several of the viewers on this page, the Markdown, PDF and image renderers among them, are Lua scripts themselves.

Lua plugins · Lua API reference · Domain model

Drawing a table with box-drawing characters in mcedit
The draw-table editor script: Shift+arrows draw lines, corners and crossings are computed on their own.

Viewer

mcview reads Markdown, structure, images and logs

Markdown

Headings, lists, tables, links, footnotes and fenced code with the editor's syntax highlighting. Mermaid flowcharts, sequence and class diagrams and display math are drawn in the terminal. Links use OSC 8 where the terminal supports it.

A large document is rendered in parts, so the first screen appears at once and the rest follows while the viewer stays responsive.

A Markdown file with a table and a Mermaid diagram rendered in mcview

Tree mode

JSON, YAML, XML, HTML, and the metadata of PNG and JPEG open as a tree, in the fullscreen viewer and in Quick View. Expand and collapse nodes, set the depth, search the whole structure, and copy the path of the selected element in a jq-like form.

The mcview_structured_auto option makes supported files open in tree mode by default.

A JSON file shown as a collapsible tree in mcview

Live logs with a filter

The viewer works with commands that never finish, such as docker logs -f or journalctl -f. Data is read without blocking the interface and shown as it arrives.

The filter offers plain search, regular expressions, case sensitivity, whole words and charset selection, and applies to the current source: only matching lines are shown, with no second file or process.

For Docker and Kubernetes logs, the number of records, the time range, the previous instance and continuous refresh are set in the viewer, and the stream can be piped through an external formatter.

Filtering a log file live in mcview

Images and generated views

PNG, JPEG and other raster images are rendered by Chafa into terminal characters and redrawn on resize. Where the terminal draws sixel graphics, the real picture is shown instead.

The same mechanism gives other files a readable form: PDF pages as searchable text with their pictures, ELF binaries through readelf, Java classes decompiled by Procyon, dBase, FoxPro and Clipper tables as pageable grids. F8 switches between the generated view and the bytes.

A PNG image rendered as terminal characters in mcview
Reading cursorSelect with the keyboard or the mouse and copy; ANSI and nroff formatting is left out of the copy.
Syntax highlightingThe viewer and the compare view use the editor's rules. Text and hex search in large files is many times faster.
Manual pagesnroff mode reads SGR styles, OSC 8 links and overstrike, in the charset of the locale.
ANSI colours16, 256 and true colour, bold, italics, underline. Shift-F9 toggles them.
Terminal replayscript(1) recordings and saved output of fullscreen programs. F9 switches None, SGR and Term.
File handlersA Lua handler can show any file its own way; the rules are in magic.ini.

Editor

mcedit with plugins, folding and history

Code folding

Multi-line blocks fold by their {}, [] and () brackets, through the gutter indicator, the Command menu or Alt+Shift+F. The command uses the selection or the nearest enclosing block.

Folding and unfolding a block in mcedit
Editor pluginsSpell checker, etags and a ctags navigator ship with it; user plugins go to ~/.local/lib/mc6/editor-plugins.
Nested syntaxesJavaScript and CSS inside HTML, code blocks in Markdown, awk, Python and SQL inside shell scripts.
Paste and clipboardA paste is one undo step; a paste into a file with another codeset is recoded.
Control charactersShown in caret notation or hidden.
Line filterF7, Filter: only the matching lines stay, with their numbers. Alt+S lifts it.
Undo historyAlt+Shift+U lists the changes; jump to any of them.
Macro explorerAlt+Shift+M lists the recorded macros: run, delete, open the definition.
Saving through sudoWhen permissions are missing, the editor offers sudo -S tee.
Long linesLogs, CSV and minified data scroll without delays.
bluerigThe editor also goes on as a terminal IDE of its own: bluerig, with language servers, a debugger and a Git window. The Git, MongoDB and PostgreSQL panels open it.

Embedded terminal

mcterm in place of the subshell

The shell runs inside the file manager. A command typed on the command line goes to the shell already running there, and the command line shows that shell's own prompt, colours and cursor. Ctrl+O toggles the terminal; it starts in the directory of the active panel and follows it, tracking the prompt, the running command, the exit status and the directory through OSC 133 and OSC 7.

  • Bounded scrollback: PgUp/PgDn, Shift+arrows, Home, End and the wheel. Typing returns to the live output.
  • Selection with the mouse or Shift+arrows, copy with Ctrl+Insert. The OSC 52 clipboard of a program reaches the clipboard too.
  • Alt+S searches the scrollback, Alt+Shift+S keeps only the matching rows.
  • The full kitty keyboard protocol, for the panels and for the programs in mcterm. While a modifier is held, the key bar can show the commands of the F keys with it.
  • Sessions: with the session plugin, mc survives a closed terminal or a dropped connection, and the next start returns to the same session.
  • Wide characters, long lines that wrap and are laid out again when the width changes, sixel graphics.
  • bash and fish start with the integration of M-Commander; F7, Shift-F4 and other file manager keys work with the panels hidden.

Terminal emulation is done by the viewer's own engine, without an external library.

The embedded terminal in M-Commander
Toggle the terminal with Ctrl+O, run commands, come back to the panels.

Compare view

Three-way merge with git's xdiff

The compare view (mcdiff6, or Ctrl-X f in the panels) compares files with the xdiff code of git inside the program instead of running diff.

It merges three files: pick the base of the merge, see which file is active and in which direction a change is copied. The git panel shows the files in conflict and opens this merge on Shift-F3; the result can be added to the index right there.

Syntax highlighting works here too, on top of the diff backgrounds and changed-word marks.

A file in conflict in the git panel, merged in the compare view and added to the index

Panels, keys and skins

Keys and skins

Key bar with modifiers

While Shift, Ctrl or Alt is held, the key bar shows what the F keys do with that modifier: sorting on Ctrl, the single-file operations on Shift, the plugin drives, Find and Tree on Alt. Release the key and the usual labels come back.

It needs a terminal with the kitty keyboard protocol, such as kitty, and is turned on by keybar_modifiers=true in the settings file.

The key bar changing its labels while Ctrl, Shift and Alt are held

Skin editor

Changes the colours and the frame characters of a skin from inside mc and shows the result as it goes. The left half lists every key of the skin by the part of the screen it paints, the right half is a sample drawn with the colours as they are now.

The Color dialog has the 16 named colours, the 256-colour picker and RGB input, plus bold, italic, underline, reverse and blink. Every change goes to the screen at once. Saving writes a copy to your skins directory and makes it the running skin. Opened from Command, Plugin panel or Manage Plugins.

The skin editor: picking colours for the file under the cursor and for marked files, then saving the skin
The Key Bindings dialog with bindings grouped into tabs
The Key Bindings dialog.

Releases

Own version line, from v6.0.1

Version numbers are independent of upstream. MINOR is bumped for feature releases, PATCH for fix-only ones. Every release page lists each change with its pull request, and apt changelog mcommander says the same.

v6.2.0 2026-11-15 Duplicates, PostgreSQL and GitHub panels; kitty keyboard protocol; three-way merge on git's xdiff; sessions; optional Far mode
v6.1.0 2026-09-26 Renamed to mcommander, installs next to mc; Markdown and PDF in the viewer; mcpeek; skin editor; help written in Markdown
v6.0.4 2026-09-01 mc grows outside its core: Lua, mcstruct and plugin streams; mcterm for the subshell
v6.0.3 2026-08-02 Packaging and plugins (spell engine and panel Quick View)
v6.0.2 2026-07-31 Packaging and CI; panel plugins
v6.0.1 2026-07-19 First tagged release: panel plugin framework and 12 plugins, mcview filter/terminal/tree modes, mcedit undo history and column blocks, FAR-style panel view modes

All notes: Releases · CHANGELOG.md

Contributing

Building, testing, coding style

Coding styleHow the code is written and what a pull request should look like.
QA testingA Docker sandbox with sftp, ssh, ftp and samba servers.
Local build checkThe CI build, run locally before a push.
Demo recordingsThe GIFs on this page, recorded from VHS tapes.