Download GNU nano 5.8
GNU nano is a text editor for Linux and Unix systems, and runs on the command line. Therefore, it does not require a graphical desktop. It offers syntax coloring, search and replace options, word completion, and automatic backups for changed files, among other things. The development team released version 5.8 earlier this month with the following announcement:
GNU nano 5.8 “Why is it necessary to be special?”
- After a search, the spotlighting is dropped after 1.5 seconds (0.8 seconds with –quick) to avoid the idea that the text is selected.
- A + and a space before a filename on the command line will put the cursor at the end of the corresponding buffer.
- Linter messages no longer include filename and line/column numbers.
- Color name “grey” or “gray” can be used instead of “lightblack”.
- The color of the minibar can be chosen with ‘set minicolor’.
GNU nano 5.7 “Toți ceilalți arau câmpurile”
- The output of –constantshow (without –minibar) is more stable.
- When opening multiple buffers and there is an error message, this message is shown again upon first switch to the relevant buffer.
- The position and size of the indicator now follow actual lines, instead of visual lines when in softwrap mode, meaning that the size of the indicator can change when scrolling in softwrap mode.
GNU nano 5.6.1 “Yellowhammer”
- Search matches are properly colorized in softwrap mode too.
- Option ‘highlightcolor’ has been renamed to ‘spotlightcolor’.
GNU nano 5.6 “Oriole”
- A search match gets highlighted (in black on yellow by default), in addition to placing the cursor at the start of the match. The color combination can be changed with ‘set highlightcolor’. By default the cursor is hidden until the next keystroke, but it can be forced on with –showcursor / ‘set showcursor’.
- Option –markmatch / ‘set markmatch’ has been removed.
- Cursor position and character code are displayed in the minibar only when option –constantshow / ‘set constantshow’ is used, and their display can be toggled with MC.
- The state flags are displayed in the minibar only when option –stateflags / ‘set stateflags’ is used.
GNU nano 5.5 “Rebecca”
- Option ‘set minibar’ makes nano suppress the title bar and instead show a bar with basic editing information at the bottom: file name (plus an asterisk when the buffer is modified), the cursor position (line,column), the character under the cursor (U+xxxx), the flags that –stateflags normally shows, plus the percentage of the buffer that is above the cursor.
- With ‘set promptcolor’ the color combination of the prompt bar can be changed, to allow contrasting it with the mini bar (which always has the same color as the title bar).
- Option ‘set markmatch’ highlights the result of a successful search by putting the mark at the end of the match, making the match more visible. It also suppresses the cursor until the next keystroke. (If you dislike the hiding of the cursor, use ‘set showcursor’.)
- The bindable toggle ‘nowrap’ has been renamed to ‘breaklonglines’, to match the corresponding option, like for all other toggles.
- Support for Snake has been removed.
GNU nano 5.4 “Terre des hommes”
- Moving the cursor now skips over combining characters (and other zero-width characters). Deleting a character deletes also any succeeding zero-width characters, but backspacing deletes just one character at a time.
GNU nano 5.3 “Revolution!”
- Option ‘set stateflags’ makes nano show the state of auto-indenting, the mark, hard-wrapping, macro recording, and soft-wrapping in the title bar. The flags take the place of “Modified”, and a modified buffer is instead indicated by an asterisk
- after its name.
- Nano no longer by default tries using libmagic to determine the type of a file (when neither filename nor first line gave a clue), because in most cases it is a waste of time. It requires using the option –magic or -! or ‘set magic’ to make nano try libmagic.
The color of the indicator can be changed with ‘set scrollercolor’.
- GNU nano 5.2 “Ranrapalca”
- Making certain replacements after a large paste does not crash.
- Hitting a toggle at the Search prompt does not clear the answer.
- Using –positionlog does not complain at the first start.
A macro containing a Search command will not sometimes fail.
- GNU nano 5.1 “Cantabria”
- M-Bsp (Alt+Backspace) deletes a word backwards, like in Bash.[hasbecomebindable(Becarefulthough:asitisthestartingcombinationofmanyescapesequencesavoidgluingittogetherwithotherkeystrokeslikeinamacro)
- M-[hasbecomebindable(Becarefulthough:asitisthestartingcombinationofmanyescapesequencesavoidgluingittogetherwithotherkeystrokeslikeinamacro)
- With –indicator and –softwrap, the first keystroke in an empty buffer does not crash.
- Invoking the formatter while text is marked does not crash.
In UTF-8 locales, an anchor is shown as a diamond.
- GNU nano 5.0 “Among the fields of barley”
- With –indicator (or -q or ‘set indicator’) nano will show a kind of scrollbar on the righthand side of the screen to indicate where in the buffer the viewport is located and how much it covers.
- With
any line can be “tagged” with an anchor, and and will jump to the nearest anchor. When using line numbers, an anchor is shown as “+” in the margin. - The Execute Command prompt is now directly accessible from the main menu (with ^T, replacing the Spell Checker). The Linter, Formatter, Spell Checker, Full, Suspension, and Cut-Till-End functions are available in this menu too.
- On terminals that support at least 256 colors, nine new color names are available: pink, purple, mauve, lagoon, mint, lime, peach, orange, and latte. These do not have lighter versions.
- For the color names red, green, blue, yellow, cyan, magenta, white, and black, the prefix ‘light’ gives a brighter color. Prefix ‘bright’ is deprecated, as it means both bold AND light.
- All color names can be preceded with “bold,” and/or “italic,” (in that order) to get a bold and/or italic typeface.
- With –bookstyle (or -O or ‘set bookstyle’) nano considers any line that begins with whitespace as the start of a paragraph.
- Refreshing the screen with ^L now works in every menu.
- In the main menu, ^L also centers the line with the cursor.
- Toggling the help lines with MX now works in all menus except in the help viewer and the linter.
- At a filename prompt, the first
lists the possibilities, and these are listed near the bottom instead of near the top. - Bindable function ‘curpos’ has been renamed to ‘location’.
- Long option –tempfile has been renamed to –saveonexit.
- Short option -S is now a synonym of –softwrap.
- The New Buffer toggle (MF) has become non-persistent. Options –multibuffer and ‘set multibuffer’ still make it default to on.
- Backup files will retain their group ownership (when possible).
- Data is synced to disk before “… lines written” is shown.
- The raw escape sequences for F13 to F16 are no longer recognized.
- Distro-specific syntaxes, and syntaxes of less common languages, have been moved down to subdirectory syntax/extra/. The affected distros and others may wish to move wanted syntaxes one level up.
Syntaxes for Markdown, Haskell, and Ada were added. | Version number |
5.8 | Release status |
Final | Website |
GNU nano | Download |
https://nano-editor.org/download.php | License type |
Conditions (GNU/BSD/etc.)