1

I am using midnight commander. To view the content of a .txt file I press F3. Then I can select text holding Shift + selecting with mouse:

enter image description here

But I would like to select the whole content of the file and it is not possible to scroll while I am selecting with the mouse.

Is there a "select all" option in that View mode?

2 Answers 2

1

Midnight Commander cannot do it. You may want to file a feature request here: https://midnight-commander.org/wiki/NewTicket

Please use any graphical text editor instead.

On a second thought I don't believe it's technically possible. MC disables scrolling which means your terminal must and must not have a scrolling history at the same time. You cannot select less output which spans more than a single screen either.

1
  • 2
    Not quite: midnight commander uses the regular smcup/rmcup (ti/te) cursor-addressing mode, which generally switches to alternate screen (and that disables "scrolling"). But selecting a whole file would have to be done using new code in MC (unrelated to shifted-mouse selection), since the whole file is not on the terminal's screen/scrollback. Commented Aug 19, 2021 at 21:59
0

Most likely the best you could do is to put command cat a.txt in your terminal and then select trxt yoy need using mouse directly in terminal. Afaik, mcview does not support functionality you need

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.