Quantcast
Channel: How to paste into nano from clipboard? - Super User
Viewing all articles
Browse latest Browse all 11

Answer by MikeOnline for How to paste into nano from clipboard?

$
0
0

The following applies when accessing Nano via a PuTTY terminal window.

If you have a ~/.nanorc file or /etc/nanorc containing set mouse, then:

  • Pasting clipboard contents into Nano requires shift+right click or shift+insert.
  • You can mark blocks of text in Nano by clicking the mouse.
  • You cannot select text with the mouse to copy it to the Clipboard (a PuTTY function), but you can mark text in Nano and copy it to the buffer with Ctrl + K, so you can paste with Ctrl + U.

If you change the ~/.nanorc setting to unset mouse, then:

  • Pasting clipboard contents into Nano requires a regular right click (or shift+insert).
  • You can mark blocks of text in Nano only with the keyboard using Alt + A followed by the arrow keys. These can be copied to the buffer with Ctrl + K.
  • You can select text with the mouse to copy it to the Clipboard (a PuTTY function).

When pasting text from the Clipboard (via PuTTY) into Nano, the pasted text may auto-indent improperly. You may have to specify unset autoindent in ~/.nanorc to resolve this.


Viewing all articles
Browse latest Browse all 11

Trending Articles