2 Editor Basics

2 Editor Basics

2.1 Entering Text

All key sequences in nano are entered using the keyboard. nano is a “modeless” editor. All keys, with the exception of Control and Meta key sequences, will enter text into the file being edited.


Next: , Previous: Entering Text, Up: Editor Basics

2.2 Special Functions

Special functions use the Control (Ctrl) key, displayed in the help and shortcut lists as ^; the Meta key, displayed as M; or the Escape (Esc) key.

  • Control key sequences are entered by holding down the Ctrl key and pressing the desired key, or by pressing the Esc key twice and pressing the desired key.
  • Pressing Esc twice and then typing a three-digit number from 000 to 255 will enter the character with the corresponding value.
  • Meta key sequences are entered by holding down the Meta key (normally the Alt key) and pressing the desired key, or by pressing the Esc key once and pressing the desired key. Certain operating systems “swallow” the Alt key so that it never reaches the application; if your operating system does this, you should use the Esc key to generate Meta key sequences.

2.3 The Titlebar

The titlebar is the line displayed at the top of the editor. There are three sections: left, center and right. The section on the left displays the version of nano being used. The center section displays the current filename, or “New Buffer” if the file has not yet been named. The section on the right will display “Modified” if the file has been modified since it was last saved or opened.

Special modes: When nano is in “File browser” mode, the center section will display the current directory instead of the filename. See See The File Browser, for more info.


Next: , Previous: The Titlebar, Up: Editor Basics

2.4 The Statusbar

The statusbar is the third line from the bottom of the screen, or the bottom line in Expert Mode. See See Expert Mode, for more info. It shows important and informational messages. Any error messages that occur from using the editor will appear on the statusbar. Any questions that are asked of the user will be asked on the statusbar, and any user input (search strings, filenames, etc.) will be input on the statusbar.


Next: , Previous: The Statusbar, Up: Editor Basics

2.5 Shortcut Lists

The Shortcut Lists are the two lines at the bottom of the screen which show some of the more commonly used functions in the editor.


Previous: Shortcut Lists, Up: Editor Basics

2.6 Using the Mouse

When mouse support has been configured and enabled, a single mouse click places the cursor at the indicated position. Clicking a second time in the same position toggles the mark. Clicking in the shortcut list executes the selected shortcut.

The mouse will work in the X Window System, and on the console when gpm is running.


Next: , Previous: Editor Basics, Up: Top

Leave a comment

You must be logged in to post a comment.