3

In 2010 someone requested that Midnight Commander allow marking files by pressing Shift+up and Shift+down, followed by moving up and down respectively.

This feature was implemented in version 4.7.3.

However (as of the latest version), the feature doesn't seem to exist. Shift+up and Shift+down both have no effect; and the otherwise comprehensive man page doesn't mention this feature.

Has the feature since been removed, or am I missing something?

EDIT: I have no local keymap. /etc/mc/mc.keymap contains:

[panel]
MarkUp = shift-up
MarkDown = shift-down

All other shortcuts work.

muru
  • 72,889
EmmaV
  • 4,067

2 Answers2

4

It should still be there, it just got moved around a bit.

Here is the keymap from version 4.7.3,

[panel]
PanelMarkFileUp = shift-up
PanelMarkFileDown = shift-down

Here is the keymap from the master branch,

[panel]
MarkUp = shift-up
MarkDown = shift-down

Note: While the name has changed slightly, it should function in the same way.

I would verify that these bindings are set in your local keymap.

oxr463
  • 1,240
  • I have no local keymap. /etc/mc/mc.keymap contains MarkUp = shift-up and MarkDown = shift-down, but these key combinations don't work. All other shortcuts work. – EmmaV Jun 24 '19 at 13:06
0

I had this problem when using Midnight Commander in Terminal on MacOS. To fix this, go to Terminal Preferences > Profiles > [your favorite profile] > Keyboard, then add two new shortcuts. Shift-up should output \033[1;2A and shift-down should output \033[1;2B.

See this Apple SE question for details.

If you're not using Terminal on MacOS, maybe double check that your terminal is correctly sending those keypresses in case it's an analogous issue.