nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit ccff4685dfe14be507cccdb04bbc1000132153e1
parent 0167f78dcae4e53f12d27ff1d1c0c3f41af85c20
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 15 Mar 2025 12:02:42 +0100

docs: in the FAQ, replace an old item with an item about Byte Order Marks

Diffstat:
Mdoc/faq.html | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/faq.html b/doc/faq.html @@ -45,7 +45,7 @@ <blockquote><p> <a href="#4.1">4.1. Alt+Up does nothing on a Linux console. How can I make it scroll?</a><br> <a href="#4.2">4.2. How can I make Ctrl+Shift+Left/Right select words on urxvt?</a><br> - <a href="#4.3">4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?</a><br> + <a href="#4.3">4.3. How do I remove an unwanted Byte Order Mark?</a><br> <a href="#4.4">4.4. With what keystroke can I paste text from the clipboard into nano?</a><br> <a href="#4.5">4.5. How do I select text for or paste text from the clipboard when nano's mouse support is turned on?</a><br> <a href="#4.6">4.6. When I paste text into a document, each line gets indented further than the last. Why? And how can I stop this?</a><br> @@ -219,8 +219,9 @@ URxvt.keysym.S-Page_Up: \033[5;2~ URxvt.keysym.S-Page_Down: \033[6;2~</pre> <p>Then run <b>xrdb ~/.Xresources</b> and restart your urxvt terminal. Now <b>Ctrl+Shift+Left</b> and <b>Ctrl+Shift+Right</b> will select words, <b>Alt+Up</b> and <b>Alt+Down</b> will scroll the text without moving the cursor, and several such things more.</p></blockquote> -<h3 id="4.3">4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?</h3> -<blockquote><p>You can use the <b>-K</b> or <b>--rawsequences</b> option on the command line, or add the line <b>set rawsequences</b> to your .nanorc. However, nano's mouse support will be disabled if you do any of these things.</p></blockquote> +<h3 id="4.3">4.3. How do I remove an unwanted Byte Order Mark?</h3> +<blockquote><p>To check whether a file contains a Byte Order Mark (BOM), open the file and type <b>Ctrl+Home</b>. If there is a BOM, the status bar will tell you so. Now type <b>Delete</b> to remove the BOM, and <b>^S</b> to save the file.</p> + <p>If you've accidentally deleted a Byte Order Mark from a file that needs it, and you want to restore it, then type: <b>Ctrl+Home Alt+V feff Enter</b>. Verify that the BOM is back with <b>Ctrl+Home</b>, and save the file with <b>^S</b>. (Note that on Unix, files should not contain a BOM.)</p></blockquote> <h3 id="4.4">4.4. With what keystroke can I paste text from the clipboard into nano?</h3> <blockquote><p>In most desktop environments <b>Shift+Insert</b> pastes the contents of the clipboard.</p></blockquote> <h3 id="4.5">4.5. How do I select text for or paste text from the clipboard when nano's mouse support is turned on?</h3>