Ticket #4114 (new enhancement) — at Initial Version

Opened 4 years ago

Last modified 4 years ago

Persistent command line buffer for subshell

Reported by: congest Owned by:
Priority: major Milestone: 4.8.26
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset:

Description

This patch allows the user to start typing a command in the panel prompt, and then continue typing it in the subshell, or to start typing a command in the subshell, and then finish typing it in the panel prompt.

It also fixes https://midnight-commander.org/ticket/2269 and https://midnight-commander.org/ticket/2110, bugs in which mc can unexpectedly execute commands without the user's permission.

The new feature works with bash, zsh, and fish. The bugfix works on all shells.

How to test the feature:

run mc
Type any command in the command prompt, but don't hit enter.
ctrl-o
The command you typed will show up in the subshell.
Type any command in the subshell, but don't hit enter.
ctrl-o
The command you typed will show up in the prompt at the bottom of the screen below the panels.

Change History

Changed 4 years ago by congest

Note: See TracTickets for help on using tickets.