2000-06-06 09:53:49 +04:00
|
|
|
|
2019-01-22 23:20:46 +03:00
|
|
|
GNU nano -- a simple editor, inspired by Pico
|
2001-04-07 21:50:03 +04:00
|
|
|
|
2021-07-18 18:02:10 +03:00
|
|
|
Purpose
|
2000-12-27 18:46:22 +03:00
|
|
|
|
2021-07-18 18:02:10 +03:00
|
|
|
Nano is a small and simple text editor for use on the terminal.
|
|
|
|
It copied the interface and key bindings of the Pico editor but
|
|
|
|
added several missing features: undo/redo, syntax highlighting,
|
|
|
|
line numbers, softwrapping, multiple buffers, selecting text by
|
|
|
|
holding Shift, search-and-replace with regular expressions, and
|
|
|
|
several other conveniences.
|
|
|
|
|
2021-07-21 11:15:07 +03:00
|
|
|
Appearance
|
|
|
|
|
|
|
|
In rough ASCII graphics, this is what nano's screen looks like:
|
|
|
|
|
|
|
|
____________________________________________________________________
|
2024-12-21 13:17:50 +03:00
|
|
|
| GNU nano 8.3 filename Modified |
|
2021-07-21 11:15:07 +03:00
|
|
|
--------------------------------------------------------------------
|
|
|
|
| This is the text window, displaying the contents of a 'buffer', |
|
|
|
|
| the contents of the file you are editing. |
|
|
|
|
| |
|
|
|
|
| The top row of the screen is the 'title bar'; it shows nano's |
|
|
|
|
| version, the name of the file, and whether you modified it. |
|
2021-07-31 21:48:10 +03:00
|
|
|
| The two bottom rows display the most important shortcuts; in |
|
2021-07-21 11:15:07 +03:00
|
|
|
| those lines ^ means Ctrl. The third row from the bottom shows |
|
|
|
|
| some feedback message, or gets replaced with a prompt bar when |
|
|
|
|
| you tell nano to do something that requires extra input. |
|
|
|
|
| |
|
|
|
|
--------------------------------------------------------------------
|
|
|
|
| [ Some status message ] |
|
2024-03-08 19:12:28 +03:00
|
|
|
|^G Help ^O Write Out ^F Where Is ^K Cut ^T Execute |
|
2021-07-21 11:15:07 +03:00
|
|
|
|^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify |
|
|
|
|
--------------------------------------------------------------------
|
|
|
|
|
2021-07-18 18:02:10 +03:00
|
|
|
Origin
|
|
|
|
|
|
|
|
The nano project was started in 1999 because of a few "problems"
|
|
|
|
with the wonderfully easy-to-use and friendly Pico text editor.
|
2000-12-27 18:46:22 +03:00
|
|
|
|
2018-01-09 18:47:51 +03:00
|
|
|
First and foremost was its license: the Pine suite does not use
|
2019-01-23 21:13:23 +03:00
|
|
|
the GPL, and (before using the Apache License) it had unclear
|
|
|
|
restrictions on redistribution. Because of this, Pine and Pico
|
|
|
|
were not included in many GNU/Linux distributions. Furthermore,
|
|
|
|
some features (like go-to-line-number or search-and-replace) were
|
|
|
|
unavailable for a long time or require a command-line flag. Yuck.
|
2000-06-06 09:53:49 +04:00
|
|
|
|
2019-01-22 23:20:46 +03:00
|
|
|
Nano aimed to solve these problems by: 1) being truly free software
|
|
|
|
by using the GPL, 2) emulating the functionality of Pico as closely
|
2019-04-28 11:34:32 +03:00
|
|
|
as is reasonable, and 3) including extra functionality by default.
|
2019-01-22 23:20:46 +03:00
|
|
|
|
2019-04-28 11:34:32 +03:00
|
|
|
Nowadays, nano wants to be a generally useful editor with sensible
|
|
|
|
defaults (linewise scrolling, no automatic line breaking).
|
2001-02-14 17:28:27 +03:00
|
|
|
|
2018-01-09 18:47:51 +03:00
|
|
|
The nano editor is an official GNU package. For more information on
|
2018-11-11 14:28:40 +03:00
|
|
|
GNU and the Free Software Foundation, please see https://www.gnu.org/.
|
2004-01-10 09:12:04 +03:00
|
|
|
|
2021-07-21 11:01:35 +03:00
|
|
|
License
|
|
|
|
|
|
|
|
Nano's code and documentation are covered by the GPL version 3 or
|
|
|
|
(at your option) any later version, except for two functions that
|
|
|
|
were copied from busybox which are under a BSD license. Nano's
|
|
|
|
documentation is additionally covered by the GNU Free Documentation
|
|
|
|
License version 1.2 or (at your option) any later version. See the
|
|
|
|
files COPYING and COPYING.DOC for the full text of these licenses.
|
|
|
|
|
|
|
|
When in any file of this package a copyright notice mentions a
|
|
|
|
year range (such as 1999-2011), it is a shorthand for a list of
|
|
|
|
all the years in that interval.
|
|
|
|
|
2000-06-06 09:53:49 +04:00
|
|
|
How to compile and install nano
|
|
|
|
|
2020-10-11 17:29:40 +03:00
|
|
|
Download the latest nano source tarball, and then:
|
2015-02-21 12:45:53 +03:00
|
|
|
|
2019-10-27 21:15:04 +03:00
|
|
|
tar -xvf nano-x.y.tar.gz
|
|
|
|
cd nano-x.y
|
2018-01-09 18:47:51 +03:00
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
2004-01-10 09:12:04 +03:00
|
|
|
|
2020-10-11 17:29:40 +03:00
|
|
|
You will need the header files of ncurses installed for ./configure
|
|
|
|
to succeed -- get them from libncurses-dev (Debian) or ncurses-devel
|
|
|
|
(Fedora) or a similarly named package. Use --prefix with ./configure
|
|
|
|
to override the default installation directory of /usr/local.
|
2015-02-21 12:45:53 +03:00
|
|
|
|
2020-10-11 17:29:40 +03:00
|
|
|
After installation you may want to copy the doc/sample.nanorc file
|
|
|
|
to your home directory, rename it to ".nanorc", and then edit it
|
2018-01-09 18:47:51 +03:00
|
|
|
according to your taste.
|
2004-01-10 09:12:04 +03:00
|
|
|
|
2000-06-06 09:53:49 +04:00
|
|
|
Web Page
|
|
|
|
|
2018-01-09 18:47:51 +03:00
|
|
|
https://nano-editor.org/
|
2004-01-10 09:12:04 +03:00
|
|
|
|
2016-11-13 22:35:19 +03:00
|
|
|
Mailing Lists
|
2000-06-06 09:53:49 +04:00
|
|
|
|
2018-01-09 18:47:51 +03:00
|
|
|
There are three nano-related mailing-lists.
|
2004-01-10 09:02:05 +03:00
|
|
|
|
2021-11-30 12:34:51 +03:00
|
|
|
* <info-nano@gnu.org> is a very low traffic list used to announce
|
2018-01-09 18:47:51 +03:00
|
|
|
new nano versions or other important info about the project.
|
2020-10-11 17:29:40 +03:00
|
|
|
|
2021-11-30 12:34:51 +03:00
|
|
|
* <help-nano@gnu.org> is for those seeking to get help without
|
2018-01-09 18:47:51 +03:00
|
|
|
wanting to hear about the technical details of its development.
|
2020-10-11 17:29:40 +03:00
|
|
|
|
2021-11-30 12:34:51 +03:00
|
|
|
* <nano-devel@gnu.org> is the list used by the people that make nano
|
2018-01-09 18:47:51 +03:00
|
|
|
and a general development discussion list, with moderate traffic.
|
2016-11-13 22:35:19 +03:00
|
|
|
|
2018-01-09 18:47:51 +03:00
|
|
|
To subscribe, send email to <name>-request@gnu.org with a subject
|
|
|
|
of "subscribe", where <name> is the list you want to subscribe to.
|
2016-11-13 22:35:19 +03:00
|
|
|
|
2020-12-21 13:17:24 +03:00
|
|
|
The archives of the development and help mailing lists are here:
|
|
|
|
|
|
|
|
https://lists.gnu.org/archive/html/nano-devel/
|
|
|
|
https://lists.gnu.org/archive/html/help-nano/
|
|
|
|
|
2016-11-13 22:35:19 +03:00
|
|
|
Bug Reports
|
|
|
|
|
2020-12-25 18:40:51 +03:00
|
|
|
If you find a bug, please file a detailed description of the problem
|
2021-09-19 12:31:10 +03:00
|
|
|
on nano's issue tracker: https://savannah.gnu.org/bugs/?group=nano
|
|
|
|
(you will need an account to be able to do so), or send an email
|
|
|
|
to the nano-devel list (no need to subscribe, but mention it if
|
|
|
|
you want to be CC'ed on an answer).
|
2022-03-20 14:50:52 +03:00
|
|
|
|