You can do this either by using your package manager, or by compiling from source. Caveat: Ubuntu/Debian carries an old version; see the appendix if you have to use this version.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- This snippet makes the F5 key launch the external 'cp' command. | |
-- | |
-- It only does this if the string "mozambique" is somewhere in the | |
-- folder's path. For all other folders, the builtin F5 will kick in. | |
-- | |
-- *** See also the 'trash' snippet for a more robust code (it does | |
-- something similar for F8). *** | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Live-update for copy/move operations. | |
This snippet updates the panel while a copy/move operation takes place. | |
This way you see the files unmarked as the operation proceeds. | |
]] | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
This snippet re-defines the 'mtime' field so that dates occuring in the | |
current calendar year are displayed differently than older dates. | |
see: | |
https://mail.gnome.org/archives/mc/2016-September/msg00015.html | |
]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
This snippet adds a "Toggle content" button to the Find File dialog. This | |
restores the old behavior of that dialog (which had a similar checkbox | |
before). | |
This was requested by a user in: | |
http://www.midnight-commander.org/ticket/3680 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Makes the <F8> key delete files using the 'trash' command. | |
You can circumvent this by pressing shift-<F8>. | |
]] | |
-- | |
-- The command to run. You may need to modify this on your system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
This script translates, to our 'htmlize' format (same as GNOME Terminal's | |
configuration string), some of Wikipedia's palettes appearing in: | |
https://en.wikipedia.org/wiki/ANSI_escape_code | |
]] | |
local append = table.insert |