User Tools

Site Tools


nano

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nano [2022/04/30 01:31] – add cheatsheet section peteyboynano [2023/01/23 20:01] (current) – re-order so cheatsheet is up top. peteyboy
Line 1: Line 1:
 ====== The nano editor ====== ====== The nano editor ======
  
-The 'nano' editor is a [[https://www.nano-editor.org/dist/latest/faq.html#1.1 | GNU-project editor]] based on 'pico' a simple but easy to use editor created for the PINE email program for creating and editing emails. It has been expanded quite a bit: there is enhanced navigation, and search which include regex search. +The 'nano' editor is a [[https://www.nano-editor.org/dist/latest/faq.html#1.1 | GNU-project editor]] based on 'pico' a simple but easy to use editor created for the PINE email program for creating and editing emails. It has been expanded quite a bit: there is enhanced navigation, and search which include regex search
 + 
 +==== nano cheatsheet ==== 
 +Nano, like 'pico', has Help. So if you start with the [[pico_cheat_sheet|pico cheatsheet]] and read the Help, you'll get what you need.
  
 A great addition, especially if you connect to SDF on a color terminal, is nano's use of "syntax" files, which provide syntax highlighting for several programming languages and related filetypes, such as HTML files, shell scripts, shell resource files (like ''.bashrc'') and even the nano resource file ''.nanorc'', where the settings for syntax file are kept. A great addition, especially if you connect to SDF on a color terminal, is nano's use of "syntax" files, which provide syntax highlighting for several programming languages and related filetypes, such as HTML files, shell scripts, shell resource files (like ''.bashrc'') and even the nano resource file ''.nanorc'', where the settings for syntax file are kept.
  
-== How to Activate Syntax Hightlighting ==+==== How to Activate Syntax Hightlighting ====
 To activate syntax highlighting, we are going to copy the default ''nanorc'' file to your user space and edit it. The steps are: To activate syntax highlighting, we are going to copy the default ''nanorc'' file to your user space and edit it. The steps are:
   -  copy the default file ''nanorc'' to your local as a resource file, ''.nanorc'' (yes, with the dot)<code>   -  copy the default file ''nanorc'' to your local as a resource file, ''.nanorc'' (yes, with the dot)<code>
Line 30: Line 33:
  
  
-=== nano cheatsheet === +====Nano Tips==== 
-Nano, like 'pico', has Help. So if you start with the [[pico_cheat_sheet|pico cheatsheet]] and read the Helpyou'll get what you need.+ 
 +=== Old Suspend Key === 
 +As of nano 6.4 suspend behavior was changed. Instead of ''ctl-z'' (also typed //^z//in the nano menu itself) being suspend as it was beforetyping ''^z' warns you that you need to to ''^t^z'' if you '''really''' mean to suspend. 
 + 
 +You can reset to the old way by putting this in your //.nanorc// That makes ''^z'' suspend again. 
 + 
 +  ## Allow nano to be suspended with ''^z'' the old way, not ''^t^z' 
 +  bind ^Z suspend main  
 + 
  
-  
nano.1651282261.txt.gz · Last modified: 2022/04/30 01:31 by peteyboy