Re: Copy text from editor

Benno Schulenberg <[email protected]> Sun, 5 Feb 2023 17:34:42 +0100
Newsgroups gmane.editors.nano.general
Message-ID <[email protected]>
Op 05-02-2023 om 09:10 schreef matteo_luigi_raso:
> I frequently find myself needing to copy text from out of GNU nano and into my
> web browser, or some other program. Is there a way to do this?

It's in the documentation.  Find it with:

   grep -A1 -B2 xsel doc/sample.nanorc

This gives:

   ## For copying a marked region to the system clipboard:
   # bind Sh-M-T "{execute}|xsel -ib{enter}{undo}" main

Of course, you can choose whatever keystroke works best for you.
After having copied something to the clipboard with the keystroke
in the above binding, you can paste it in other applications with
^V.


Benno
OpenPGP_signature (application/pgp-signature, 840 B) - not displayed