Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I copy current folder name to the command line of Midnight commander?

Tags:

mc

I need something similar to ctrl+enter in total commander, copy current selected folder name in the panel to the command line

like image 200
Eugene M. Avatar asked Dec 31 '25 20:12

Eugene M.


2 Answers

In some terminals (default configuration of Windows Terminal) you cannot use:

  • Alt+something combinations
  • modifier+Enter combinations

For such cases there are these sequences:

  • Esc, Enter or Ctrl+x, (Ctrl+)t --- copy the file (dir) name from the cursor to the command line
  • Esc, a or Ctrl+x, (Ctrl+)p --- copy the panel's directory path to the command line
like image 127
pabouk - Ukraine stay strong Avatar answered Jan 05 '26 20:01

pabouk - Ukraine stay strong


Try the shortcut:

Left Alt + Enter

like image 42
Andrzej Jozwik Avatar answered Jan 05 '26 21:01

Andrzej Jozwik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!