Nano Crash: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 127: Zeile 127:
 
*CRTL + x
 
*CRTL + x
 
=Datei speichern=
 
=Datei speichern=
*CTRL + o
+
*Ctrl + o
 +
=Suche=
 +
*Ctrl + w
 +
=Weitersuchen
 +
*Alt + w
 +
=Suchen/Ersetzen=
 +
*Alt + r
 +
=Zeile ausschneiden und einfügen=
 +
*Strg + k dann Strg + u 
 +
=Bereich markieren, in die Zwischen Ablage und einfügen=
 +
*Strg + 6 dann Pfeiltasten dann Alt + 6  dann Strg + u

Version vom 30. August 2017, 15:13 Uhr

Grundsätzliches

  • Anders als etwa Vi/Vim verfügt Nano über nur einen Modus, der bei Vi/Vim Eingabe-Modus heißt. Die Datei kann also direkt nach dem öffnen bearbeitet werden
  • Kommandos kann man Nano über bestimmte Tasten-Kombinationen erteilen, eine kleine Übersicht zeigt Nano auch im unteren Bildschirmteil selbstständig an
  • Beim Aufruf können Optionen angeben werden. Ein typischer Nano-Aufruf sähe folgender Maßen aus:
nano [Optionen] [Datei]

Übersicht über die Optionen

Option		GNU long option		Meaning
 +LINE,COLUMN				Start at line LINE, column COLUMN
 -A		--smarthome		Enable smart home key
 -B		--backup		Save backups of existing files
 -C <dir>	--backupdir=<dir>	Directory for saving unique backup files
 -D		--boldtext		Use bold instead of reverse video text
 -E		--tabstospaces		Convert typed tabs to spaces
 -F		--multibuffer		Read a file into a new buffer by default
 -G		--locking		Use (vim-style) lock files
 -H		--historylog		Log & read search/replace string history
 -I		--ignorercfiles		Don't look at nanorc files
 -K		--rebindkeypad		Fix numeric keypad key confusion problem
 -L		--nonewlines		Don't add newlines to the ends of files
 -N		--noconvert		Don't convert files from DOS/Mac format
 -O		--morespace		Use one more line for editing
 -P		--positionlog		Log & read location of cursor position
 -Q <str>	--quotestr=<str>	Quoting string
 -R		--restricted		Restricted mode
 -S		--smooth		Scroll by line instead of half-screen
 -T <#cols>	--tabsize=<#cols>	Set width of a tab to #cols columns
 -U		--quickblank		Do quick statusbar blanking
 -V		--version		Print version information and exit
 -W		--wordbounds		Detect word boundaries more accurately
 -Y <str>	--syntax=<str>		Syntax definition to use for coloring
 -c		--constantshow		Constantly show cursor position
 -d		--rebinddelete		Fix Backspace/Delete confusion problem
 -h		--help			Show this help text and exit
 -i		--autoindent		Automatically indent new lines
 -k		--cut			Cut from cursor to end of line
 -m		--mouse			Enable the use of the mouse
 -n		--noread		Do not read the file (only write it)
 -o <dir>	--operatingdir=<dir>	Set operating directory
 -p		--preserve		Preserve XON (^Q) and XOFF (^S) keys
 -q		--quiet			Silently ignore startup issues like rc file errors
 -r <#cols>	--fill=<#cols>		Set hard-wrapping point at column #cols
 -s <prog>	--speller=<prog>	Enable alternate speller
 -t		--tempfile		Auto save on exit, don't prompt
 -u		--unix			Save a file by default in Unix format
 -v		--view			View mode (read-only)
 -w		--nowrap		Don't hard-wrap long lines
 -x		--nohelp		Don't show the two help lines
 -z		--suspend		Enable suspension
 -$		--softwrap		Enable soft line wrapping

Übersicht über Tastenkombinationen und Kommandos

Tastenkombination Kommando
Strg + G Vollständige Liste der Tastenkürzel
Strg + X Datei schließen
Strg + O Datei speichern
Strg + W Suche
Alt + W Weitersuchen
Alt + R Suchen/Ersetzen
Alt + 6 Zeile (oder Markierung) in Zwischenablage kopieren
Strg + K Zeile (oder Markierung) ausschneiden und in Zwischenablage kopieren
Strg + U Inhalt der Zwischenablage einfügen
Alt + A Markierung beginnen/Markierung aufheben
Strg + A Zum Zeilenanfang gehen
Strg + E Zum Zeilenende gehen
Alt + Alt Gr + < Zum Dateianfang gehen
Alt + ⇧ + 7 Zum Dateiende gehen
Alt + G Zu einer bestimmten Zeile springen
Alt + D Dateistatistiken anzeigen
Strg + C Aktuelle Cursorposition anzeigen
Alt + C Aktuelle Cursorposition ständig anzeigen ein/aus
Alt + X Hilfezeilen anzeigen ein/aus
Alt + O Leerzeile unterhalb der Titelzeile ein/aus
Alt + Y Syntaxhervorhebung ein/aus

Datei schliessen

  • CRTL + x

Datei speichern

  • Ctrl + o

Suche

  • Ctrl + w

=Weitersuchen

  • Alt + w

Suchen/Ersetzen

  • Alt + r

Zeile ausschneiden und einfügen

  • Strg + k dann Strg + u

Bereich markieren, in die Zwischen Ablage und einfügen

  • Strg + 6 dann Pfeiltasten dann Alt + 6 dann Strg + u