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

How I can reassign these key combinations?


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.

  • 1
    Say what now??? – Pillsbury IT Doughboy Sep 24 '17 at 19:45
  • For me, on Ubuntu, it seems that it is the other way around, Shift-F4 gives me the rename file dialog, Shift-F6 deletes a file. Your comment helped me figure this out though. – BlackShift Jan 5 at 18:52

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~


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).

  • 1
    Shift key allows to copy/move to the same MC panel. Yes, I need it. These combinations work well on Win machine. – Junky Apr 27 '15 at 15:32
  • 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 Apr 27 '15 at 15:37
  • @Tetsujin It didn't help. – Junky Apr 27 '15 at 15:40
  • Did you see gist.github.com/sgergely/3793166 ? It doesn't mention shift/F-keys. – Tetsujin Apr 27 '15 at 15:45
  • @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 Apr 27 '15 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.