Skip to content

Instantly share code, notes, and snippets.

@Kielx
Last active November 9, 2025 10:18
Show Gist options
  • Select an option

  • Save Kielx/b61d01c68935b533c0e9155f784b6b00 to your computer and use it in GitHub Desktop.

Select an option

Save Kielx/b61d01c68935b533c0e9155f784b6b00 to your computer and use it in GitHub Desktop.
Midnight commander tab switch shortcut for autocomplete
This allows you to use shift-tab to switch active tab in midnight commander, while allowing you to use tab for autocomplete commands like cd. Good for people used to using TAB to autocomplete commands in terminal line.
Original post: https://unix.stackexchange.com/questions/250818/how-to-use-command-line-completion-in-midnight-commander
nano ~/.config/mc/mc.keymap
[filemanager:empty-cmdline]
ChangePanel = tab
[filemanager]
ChangePanel = ctrl-tab; shift-tab
[input]
Complete = tab
Change time display in midnight commander to numeric:
Open ~/.config/mc/ini
Change timeformat_recent and timeformat_old settings to the same format string (in my case, to %F %T, which is YYYY-MM-DD HH:MM:SS)
Save ~/.config/mc/ini
https://superuser.com/questions/600545/how-to-display-normal-date-time-in-midnight-commander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment