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.

2
  • It works for me with MC 4.8.18 and 4.8.21. Do you have a personalised keymap in ~/.mc? Commented Jun 24, 2019 at 12:19
  • 1
    I just compiled the master revision of mc from the GitHub sources, and this seems to work out of the box. Commented Jun 24, 2019 at 12:23

2 Answers 2

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.

1
  • 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. Commented Jun 24, 2019 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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.