From efb9192ee58446930c5e77758f225b02003f80e9 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 12 Mar 2018 11:16:54 +0100 Subject: [PATCH] docs: mention in the FAQ that pastes from the clipboard This kind of addresses https://savannah.gnu.org/bugs/?53310. --- doc/faq.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/faq.html b/doc/faq.html index f1346df4..86a4893c 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -44,8 +44,9 @@ 4.5. How do I type the F13-F16 keys listed in the help viewer? My keyboard only has F1-F12!
4.6. nano crashes when I type <insert keystroke here>!
4.7. nano crashes when I resize my window. How can I fix that?
- 4.8a. When I paste text into a document, each line gets indented further than the last. Why does nano do this, and how can I avoid it?
- 4.8b. When I paste from Windows into a remote nano, nano rewraps the lines. What gives?
+
4.8a. With what keystroke can I paste text from the clipboard into nano?
+ 4.8b. When I paste text into a document, each line gets indented further than the last. Why does nano do this, and how can I avoid it?
+ 4.8c. When I paste from Windows into a remote nano, nano rewraps the lines. What gives?
4.9. I've compiled nano with color support, but I don't see any color when I run it!
4.10. How do I make nano my default editor (in Pine, mutt, etc.)?
4.11. How do I select text for or paste text from the clipboard in an X terminal when I'm running nano in one and nano's mouse support is turned on?
@@ -200,9 +201,11 @@

If you aren't trying some bizarre keystroke combination with some bizarre $TERM entry, chances are you have found a bug. You are welcome to submit it to the nano-devel list or in the bug tracker on Savannah.

4.7. nano crashes when I resize my window. How can I fix that?

Older versions of nano had this problem. Please upgrade to version 2.7.0 or newer.

-

4.8a. When I paste text into a document, each line gets indented further than the last. Why does nano do this, and how can I avoid it?

+

4.8a. With what keystroke can I paste text from the clipboard into nano?

+

In most desktop environments Shift+Insert will paste the contents of the clipboard.

+

4.8b. When I paste text into a document, each line gets indented further than the last. Why does nano do this, and how can I avoid it?

You have the autoindent feature turned on. Hit Meta-I to turn it off, paste your text, and then hit Meta-I again to turn it back on.

-

4.8b. When I paste from Windows into a remote nano, nano rewraps the lines. What gives?

+

4.8c. When I paste from Windows into a remote nano, nano rewraps the lines. What gives?

When pasting from Windows, in some situations linefeeds are sent instead of carriage returns (Enters). And linefeeds are ^Js, which make nano justify (rewrap) the current paragraph. To prevent these linefeeds from causing these unwanted justifications, add this line to your .nanorc on the remote Linux box: unbind ^J main or bind ^J enter main, depending on whether the paste contains CR + LF or only LF.

4.9. I've compiled nano with color support, but I don't see any color when I run it!

If you want nano to actually use color, you have to specify the color configurations you want it to use in your .nanorc. Several example configurations are in the syntax/ subdirectory of the nano source, which are normally installed to /usr/local/share/nano/. To enable all of them, uncomment the line # include "/usr/local/share/nano/*.nanorc" in your nanorc. See also section 3.9a.