neysx 05/12/31 16:32:50 Modified: xml/htdocs/doc/en nano-basics-guide.xml Log: #117080 Fixed inconsistent representation of Ctrl-key
Revision Changes Path 1.18 +24 -18 xml/htdocs/doc/en/nano-basics-guide.xml file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/nano-basics-guide.xml?rev=1.18&content-type=text/x-cvsweb-markup&cvsroot=gentoo plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/nano-basics-guide.xml?rev=1.18&content-type=text/plain&cvsroot=gentoo diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/nano-basics-guide.xml.diff?r1=1.17&r2=1.18&cvsroot=gentoo Index: nano-basics-guide.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/nano-basics-guide.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- nano-basics-guide.xml 13 Sep 2005 12:00:00 -0000 1.17 +++ nano-basics-guide.xml 31 Dec 2005 16:32:50 -0000 1.18 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding="UTF-8"?> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/nano-basics-guide.xml,v 1.17 2005/09/13 12:00:00 rane Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/nano-basics-guide.xml,v 1.18 2005/12/31 16:32:50 neysx Exp $ --> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> <guide link="/doc/en/nano-basics-guide.xml"> @@ -62,7 +62,7 @@ <warn> It is very, very important that you use the -w switch when opening a config -file. Failure to do so may keep your system from booting or other bad things. +file. Failure to do so may keep your system from booting or cause other bad things. </warn> </body> @@ -73,14 +73,14 @@ <p> If you want to save the changes you've made, press <c>Ctrl+O</c>. To exit -<c>nano</c>, type <c>Ctrl+X</c>. If you ask <c>nano</c> to exit a modified file, +nano, type <c>Ctrl+X</c>. If you ask nano to exit from a modified file, it will ask you if you want to save it. Just press <c>N</c> in case you don't, or <c>Y</c> in case you do. It will then ask you for a filename. Just type it in and press <c>Enter</c>. </p> <p> -If you accidentally confirmed that you want to save the file, but you actually +If you accidentally confirmed that you want to save the file but you actually don't, you can always cancel by pressing <c>Ctrl+C</c> when you're prompted for a filename. </p> @@ -92,21 +92,21 @@ <body> <p> -To cut a single line line you use <c>^K</c>. You simply hold down <c>CTRL</c> -and <c>k</c> at the same time. The line disappears. To paste it you simply -move the cursor to where you want to paste and punch <c>^U</c> (<c>CTRL u</c>) -on your keyboard. BAM! The line reappears. Suppose you need to move a whole -paragraph. To move multiple lines simply cut each line one at a time, and then -paste. BAM! The whole paragraph appears wherever you want it. +To cut a single line, you use <c>Ctrl+K</c> (hold down <c>Ctrl</c> and +then press <c>K</c>). The line disappears. To paste it, you simply +move the cursor to where you want to paste it and punch <c>Ctrl+U</c>. +The line reappears. To move multiple lines, simply cut them with several +<c>Ctrl+K</c>s in a row, then paste them with a single <c>Ctrl+U</c>. +The whole paragraph appears wherever you want it. </p> <p> -If you need a little more fine grained control then you need to mark the text. -Move the cursor to the beginning of the text you want to cut. Hit <c>^^</c> -(that's <c>ctrl ^</c> or <c>ctrl 6</c>). Now move your cursor to the end of -the text you want to cut. The desired text should be highlighted now. If need -to cancel your text marking simply hit <c>^^</c> again. Click <c>^K</c> to cut -the text. Use <c>^U</c> to paste it. BAM! Now that's cooking. +If you need a little more fine-grained control, then you have to mark the text. +Move the cursor to the beginning of the text you want to cut. Hit <c>Ctrl+6</c> +(or <c>Alt+A</c>). Now move your cursor to the end of the text you want to cut: +the marked text gets highlighted. If you need to cancel your text marking, +simply hit <c>Ctrl+6</c> again. Press <c>Ctrl+K</c> to cut the marked text. +Use <c>Ctrl+U</c> to paste it. </p> </body> @@ -117,10 +117,16 @@ <p> Searching for a string is easy as long as you think <e>"WhereIs"</e> instead of -<e>"Search"</e>. Simple hit <c>^W</c> (<c>CTRL w</c>) and type in your search -string. Like I said, easy. +<e>"Search"</e>. Simply hit <c>Ctrl+W</c>, type in your search string, and +press <c>Enter</c>. To search for the same string again, hit <c>Alt+W</c>. </p> +<note> +In nano's help texts the Ctrl-key is represented by a caret (^), +so <c>Ctrl+W</c> is shown as <c>^W</c>, and so on. The Alt-key is +represented by an M (from "Meta"), so <c>Alt+W</c> is shown as <c>M-W</c>. +</note> + </body> </section> <section> -- [email protected] mailing list
