Shift-F5 and Shift-F6 don't work in Midnight Commander on Mac OS X

5

ShiftF5 does not copy file.
ShiftF6 does not rename file.

How I can reassign these key combinations?

Junky

Posted 2015-04-27T15:08:41.240

Reputation: 181

Answers

3

In Midnight Commander F15 is copying files (with renaming) in the same directory and F16 is renaming files in the same directory.

In keyboard preferences of Terminal I assigned to ShiftF5 Action value of F15 and ShiftF6 Action value of F16.

Action values:
F15 is \033[28~
F16 is \033[29~

Junky

Posted 2015-04-27T15:08:41.240

Reputation: 181

3

For some reason the actual shift key number sent is 2 lower than pressed.

For ex. Shift-F8 sends Shift-F6.

Also mentioned here: https://midnight-commander.org/ticket/2885

I remapped the codes as mentioned above in Terminal preferences and it works now.

Eduard Rozenberg

Posted 2015-04-27T15:08:41.240

Reputation: 91

1Say what now??? – Pimp Juice IT – 2017-09-24T19:45:08.280

0

Are you sure you need the shift key?

I can copy files just fine in midnight commander when using either F5or Shift 5.

Same for move/rename with F6 (and alternative Shift 6 for when the function keys are not working or not available).

Hennes

Posted 2015-04-27T15:08:41.240

Reputation: 60 739

1Shift key allows to copy/move to the same MC panel. Yes, I need it. These combinations work well on Win machine. – Junky – 2015-04-27T15:32:56.790

Might depend which way round you have your F-keys set. If they normally turn the volume up/down etc, then use Fn/Shift/F5 etc – Tetsujin – 2015-04-27T15:37:14.550

@Tetsujin It didn't help. – Junky – 2015-04-27T15:40:29.487

Did you see https://gist.github.com/sgergely/3793166 ? It doesn't mention shift/F-keys.

– Tetsujin – 2015-04-27T15:45:16.493

@Tetsujin That is a good point for some laptop and some very annoying (often called 'multi-media' keyboards which combine useless keys with function keys and where you actually have to press Fn to use the regular function keys).

@ Junky: OK, darn. I tested it on a BSD machine which is the closest thing to OS X which I have access to (though I remember it working the same way on Linux). No idea why OSX does it differently. ponders deleting answer since it obviously is not the right one. – Hennes – 2015-04-27T15:45:19.577