OPT_nano

About

nano is a versatile console text editor with numerous features including text colouring, automated indentation and easy to use search and replace. It provides a well chosen balance between functionality and required disk space.

This OPT is intended as a powerful alternative for vi or e3. Since Fli4L 3.5 is being planned to contain joe from the BusyBox as standard editor, OPT_nano may become obsolete and therefore unmaintained past the launch of the first stable release Fli4L 3.6.

Note: Due to insufficient ressources on Fli4L, the support for the UTF-8 format has been disabled in nano.

OPT Configuration

Variable Description Valid Example
OPT_NANO Enable OPT_nano 'yes' or 'no' 'yes'
NANO_FEATURES
Determines the available features and required disk space for nano. Setting 'tiny' disables the online help and some other features.
'full' or 'tiny'
'full'
NANO_NANORC_N Number of nano text colouring configurations to use. Any number '5'
NANO_NANORC_% Name of nano text colouring file to use. 'php', 'c', 'man', 'patch', 'nanorc', 'html', 'mutt', 'sh', 'python', 'pov', 'gentoo', 'groff', 'asm', 'ocaml', 'awk', 'ruby', 'xml', 'tex', 'java', 'tcl', 'fortran', 'perl', 'objc', 'debian', 'makefile' or 'css' 'html'

nanorc Configuration

nano can be configured to your needs. Set any of the following variables, if you need to, whereas all of them are optional.

Variable Description Valid Default
NANO_AUTOINDENT Use auto-indentation. 'yes' or 'no'
NANO_BACKUP Create backup files in filename~. 'yes' or 'no'
NANO_BACKUPDIR Set the directory where nano puts unique backup files if file backups are enabled. Any absolute path
NANO_BACKWARDS Do backwards searches by default. 'yes' or 'no'
NANO_BOLDTEXT Use bold text instead of reverse video text. 'yes' or 'no'
NANO_BRACKETS Set the characters treated as closing brackets when justifying paragraphs. They cannot contain blank characters. Only closing punctuation, optionally followed by closing brackets, can end sentences. Any characters '"’)>]}'
NANO_CASESENSITIVE Do case sensitive searches by default. 'yes' or 'no'
NANO_CONST Constantly display the cursor position in the status bar. 'yes' or 'no'
NANO_CUT Use cut to end of line by default. 'yes' or 'no'
NANO_FILL Wrap lines at column number n. If n is 0 or less, the maximum line length will be the screen width less n columns. Any positive integer '-8'
NANO_HISTORYLOG Enable ~/.nano_history for saving and reading search/replace strings. 'yes' or 'no'
NANO_MATCHBRACKETS Set the opening and closing brackets that can be found by bracket searches. They cannot contain blank characters. The former set must come before the latter set, and both must be in the same order. Any characters '(<[{)>]}'
NANO_MORESPACE Use the blank line below the titlebar as extra editing space. 'yes' or 'no'
NANO_MOUSE Enable mouse support, if available for your system. When enabled, mouse clicks can be used to place the cursor, set the mark (with a double click), and execute shortcuts. The mouse will work in the X Window System, and on the console when gpm (NOT included in OPT_nano) is running. 'yes' or 'no'
NANO_MULTIBUFFER Allow inserting files into their own buffers. 'yes' or 'no'
NANO_NOCONVERT Don’t convert files from DOS/Mac format. 'yes' or 'no'
NANO_NOFOLLOW Don’t follow symlinks when writing files. 'yes' or 'no'
NANO_NOHELP Don’t display the help lists at the bottom of the screen. 'yes' or 'no'
NANO_NONEWLINES Don’t add newlines to the ends of files. 'yes' or 'no'
NANO_NOWRAP Don’t wrap text at all. 'yes' or 'no'
NANO_OPERATINGDIR nano will only read and write files inside directory and its subdirectories. Also, the current directory is changed to here, so files are inserted from this directory. Any absolute path '' (don't use feature)
NANO_PRESERVE Preserve the XON and XOFF keys (^Q and ^S). 'yes' or 'no'
NANO_PUNCT Set the characters treated as closing punctuation when justifying paragraphs. They cannot contain blank characters. Only closing punctuation, optionally followed by closing brackets, can end sentences. Any characters '!.?'
NANO_QUICKBLANK Do quick statusbar blanking. Statusbar messages will disappear after 1 keystroke instead of 25. 'yes' or 'no'
NANO_QUOTESTR The email-quote string, used to justify email-quoted paragraphs. Any characters '>'
NANO_REBINDDELETE Interpret the Delete key differently so that both Backspace and Delete work properly. You should only need to use this option if Backspace acts like Delete on your system. 'yes' or 'no'
NANO_REBINDKEYPAD Interpret the numeric keypad keys so that they all work properly. You should only need to use this option if they don’t, as mouse support won’t work properly with this option enabled. 'yes' or 'no'
NANO_REGEXP Do extended regular expression searches by default. 'yes' or 'no'
NANO_SMARTHOME Make the Home key smarter. When Home is pressed anywhere but at the very beginning of non-whitespace characters on a line, the cursor will jump to that beginning (either forwards or backwards). If the cursor is already at that position, it will jump to the true beginning of the line. 'yes' or 'no'
NANO_SMOOTH Use smooth scrolling by default. 'yes' or 'no'
NANO_SOFTWRAP Use soft wrapping by default. 'yes' or 'no'
NANO_SPELLER Use spelling checker spellprog instead of the built-in one, which calls spell. Any absolute path ''
NANO_SUSPEND Allow nano to be suspended. 'yes' or 'no'
NANO_SUSPENDABLE If nano is allowed to be suspended, allow the suspend key (usually ^Z) to actually suspend it. 'yes' or 'no'
NANO_TABSIZE Use a tab size of n columns. The value of n must be greater than 0. Any positive integer '8'
NANO_TABSTOSPACES Convert typed tabs to spaces. 'yes' or 'no'
NANO_TEMPFILE Save automatically on exit, don’t prompt. 'yes' or 'no'
NANO_UNDO
'yes' or 'no'
NANO_VIEW Disallow file modification. 'yes' or 'no'
NANO_WHITESPACE Set the two characters used to display the first characters of tabs and spaces. They must be single-column characters. Any characters
NANO_WORDBOUNDS Detect word boundaries more accurately by treating punctuation characters as parts of words. 'yes' or 'no'

Man Page

Please, open the external file nano-man-page.pdf.

License

This package is licensed under Free Software Foundation, Inc., General Public License Version 2, June 1991.

copyright © 2010 Tiger

nano is developed by the Nano Development Team. Visit the nano website at http://www.nano-editor.org/.