Midnight Commander Tips and Tricks
softpanorama.org
softpanorama.org
lf (https://github.com/gokcehan/lf)
nnn (https://github.com/jarun/nnn)
lfm (https://github.com/langner/lfm)
vifm (https://vifm.info/)
ranger (https://github.com/ranger/ranger)
With UI (cross platform):
muCommander (https://www.mucommander.com/)
DoubleCommander (https://doublecmd.sourceforge.io/)
fman (https://fman.io/)
Camelot (https://github.com/IngvarX/Camelot)
I prefer lf and muCommander (only for simple ops, though), for sync and resumable copy I use rsync and rclone.
Disclosaroo: I wrote it.
Especially vim shortcuts are often a thing - I personally like single file binaries that are portable, have sane defaults and easy to setup without root permissions (like lf).
- Extensibility (e.g. Far Manager has macros, plugins, and scripting; mc has none)
- Better file system navigation (pressing Ctrl+S every time to start isearch when entering a directory is cumbersome)
- Better history (no search; the history file is clobbered on exit, overwriting other instances' history)
- Generally better ergonomics that don't rely so much on the hard-to-reach F-keys
- Things like built-in image viewer that are present in modern file managers are absent in mc
- Development velocity seems to be rather low; not sure why, perhaps because it adopted GitHub only relatively recently.
mc features that I wish other file managers had:
- Stable (no crashes)
- Packaged in all major distributions, so can be installed and used anywhere
- Fairly good performance (asynchronous listdir/stat would make this even better)
- VFS for archives and remote hosts (FUSE/sshfs can be flaky)
- File management features which are standard for Norton clones (but not for many new file managers like ranger), such as searching in files (and operating on the results)
- Runs in a terminal, so can be used via SSH
re: extensibility -- mc does have scripting [1] (although not sure if you meant something else)
re: image viewer -- hmm how would that work considering mc is running in terminal? I guess it could interact with some sort of modal window for file previews or something like that.
[1] https://github.com/MidnightCommander/mc/blob/master/misc/mc....
Scripting in the sense that the application exposes an API that scripts can interact with to query data or perform actions, usually to an equivalent capacity as to what the user could do themselves.
In the case of Far Manager, the Lua scripting API exposes the same API as for plugins, which allows complex integrations such as implementing custom UIs and VFSs.
> re: image viewer -- hmm how would that work considering mc is running in terminal? I guess it could interact with some sort of modal window for file previews or something like that.
Well, there's a whole bunch of methods. Many terminals support at least one protocol for drawing bitmaps, such as Sixel; ranger uses the simple method of overlaying an X11 window on top of the terminal emulator's.
[1] https://www.geek.co.il/~mooffie/mc-lua/docs/html/
Later I tried to get better and standard terminal stuff and abandoned mc from my system so i couldnt cheat around. These day, my GF uses mc sometimes to get very basic things done.
Come to think of it, I no longer recall what Windows Explorer actually looks like.
What is this Windows Explorer of which you speak?
http://blog.nawaz.org/posts/2012/Dec/a-guide-to-midnight-com...
And yes, definitely FAR Manager on Windows!
I think Far Manager wins in extensibility and being FOSS, and Windows/Total Commander wins in out-of-the-box utility.
It would be great if there were some in-depth, feature-by-feature comparisons of all these two-pane file managers.
alias mc='mc -P "/tmp/mc-$USER/mc.pwd.$$"; cd `cat /tmp/mc-$USER/mc.pwd.$$`; rm /tmp/mc-$USER/*'
The other is to use a supplied with mc more generic script
alias mc='. /usr/libexec/mc/mc-wrapper.sh'
One of the most common problems with mc is incorrect display of pseudo-graphical characters, which spoils borders on the panels and while this defect does not affect functionality, is very unpleasant aesthetically. See Midnight commander does not display pseudo-graphic characters properly for more information. You can use option -a to use regular characters instead and in most cases this is an adequate solution. """
Hell, no. I am glad I learned vim and I am still using it a lot but I am not going down another rabbit hole where easy and simple things are ... contorted. And I don't want to take care about another configuration file in order to feel at home. I just want sane defaults, simple things made easy and complex task possible. What I like about vim is that the modal editing paradigm. All the rest could be better and whenever Neovim or Helix or Amp or Onivim or any other terminal editor/ide is 1.0, I'll jump ship. Navigating files with the command line is not that complicated imho.
I don't blame Vim, maybe it was not meant to be an IDE. Maybe we need a terminal IDE.
(the current drive/directory was global state in DOS - it even recorded the current directory per drive, but that may only have been command.com doing that)
We have only gone backwards, in all aspects, from performance to usability.
- Tabs
- Multi-file rename
Multi-rename tool > Editor (bottom right). Ctrl+M is the shortcut for Multi-rename tool.
I also figured out, just a while back, that one can even edit filenames in the editor and save to get the changes reflected in the file-system.