Alt+Enter keybinding for copying selected filename to commandline in Midnight Commander (mc) doesn't work #9780

Closed
opened 2026-01-31 02:03:35 +00:00 by claunia · 6 comments
Owner

Originally created by @niiiksh on GitHub (Jul 23, 2020).

Alt+Enter keybinding in mc supposed to copy selected file name to commandline but in Windows Terminal it does open full screen mode. I don't know how to workaround this because it is quite useful keybinding. Can I disable Alt+Enter full screen in Windows Terminal and leave only F11 key for full screen support?

Originally created by @niiiksh on GitHub (Jul 23, 2020). Alt+Enter keybinding in mc supposed to copy selected file name to commandline but in Windows Terminal it does open full screen mode. I don't know how to workaround this because it is quite useful keybinding. Can I disable Alt+Enter full screen in Windows Terminal and leave only F11 key for full screen support?
Author
Owner

@zadjii-msft commented on GitHub (Jul 23, 2020):

Yep. Just add the following to your keybindings:

{ "keys": "alt+enter", "command": "unbound" }

See also: the docs

@zadjii-msft commented on GitHub (Jul 23, 2020): Yep. Just add the following to your `keybindings`: ```json { "keys": "alt+enter", "command": "unbound" } ``` See also: [the docs](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/key-bindings#unbind-keys)
Author
Owner

@niiiksh commented on GitHub (Jul 23, 2020):

@zadjii-msft Oh thank you! I've unbounded these keys but found that Alt+Enter now interpreted as Enter. Although there is a workaround to use Esc+Enter,

@niiiksh commented on GitHub (Jul 23, 2020): @zadjii-msft Oh thank you! I've unbounded these keys but found that _**Alt+Enter**_ now interpreted as **_Enter_**. Although there is a workaround to use **_Esc+Enter_**,
Author
Owner

@zadjii-msft commented on GitHub (Jul 23, 2020):

@niiiksh What version are you using? That might be fixed in 1.1+

@zadjii-msft commented on GitHub (Jul 23, 2020): @niiiksh What version are you using? That might be fixed in 1.1+
Author
Owner

@niiiksh commented on GitHub (Jul 23, 2020):

@zadjii-msft I'm using version 1.1.2021.0 currently, latest from Microsoft Store

@niiiksh commented on GitHub (Jul 23, 2020): @zadjii-msft I'm using version 1.1.2021.0 currently, latest from Microsoft Store
Author
Owner

@niiiksh commented on GitHub (Jul 23, 2020):

Also when I hold Esc and press Enter for the second time it acts as Enter but I expect it to work as Esc+Enter in that case.

@niiiksh commented on GitHub (Jul 23, 2020): Also when I hold _**Esc**_ and press _**Enter**_ for the second time it acts as _**Enter**_ but I expect it to work as _**Esc+Enter**_ in that case.
Author
Owner

@jerzy-wachowiak commented on GitHub (Dec 18, 2023):

As of Windows Terminal version 1.4, the keybindings array has been renamed to actions inside the settings.json file.

@jerzy-wachowiak commented on GitHub (Dec 18, 2023): As of Windows Terminal version 1.4, the `keybindings` array has been renamed to `actions` inside the settings.json file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9780