[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: selecting text with mouse includes linenumbers
From: |
Benno Schulenberg |
Subject: |
Re: selecting text with mouse includes linenumbers |
Date: |
Sun, 4 Feb 2024 15:57:06 +0100 |
User-agent: |
Mozilla Thunderbird |
An alternative could be to add this line to your nanorc:
bind Sh-M-C "{execute}|xsel -ib{enter}{undo}" main
Then you can select text in nano in the normal way
(by holding Shift while moving the cursor; not with
the mouse) and copy it to the system's clipboard
with Shift+Alt+C. After that you can paste it into
graphical apps with Ctrl+V, or into another terminal
with Shift+Ctrl+V.
(Instead of Sh-M-C you can of course bind any other
shortcut you like -- for example: M-C, in case you
never use constantshow.)
Vim (with :set number) works the same way for me: also
the line numbers get selected.
Emacs (after M-x linu <Tab> <Enter>) behaves this way too.
Benno
OpenPGP_signature.asc
Description: OpenPGP digital signature