Benno Schulenberg
3efb9c3a2e
docs: mention the new 'set promptcolor' option
2020-12-06 16:34:42 +01:00
Benno Schulenberg
26f5c8b9d5
rcfile: stop accepting 'set view' in a nanorc file, and undocument it
...
Like --restricted, --view really only makes sense on the command line.
2020-10-10 12:42:20 +02:00
Benno Schulenberg
2c41600957
docs: explain the purpose of -! / --magic / 'set magic'
...
Also, colorize 'set magic' as valid option in a nanorc file.
2020-09-25 16:35:50 +02:00
Benno Schulenberg
844c671bf1
docs: explain what the options --stateflags (-%) and 'set stateflags' do
...
Also, colorize 'set stateflags' as valid option in a nanorc file.
2020-09-23 19:48:03 +02:00
Benno Schulenberg
7b19b4114c
docs: improve two wordings in the sample nanorc
2020-09-11 10:45:19 +02:00
Benno Schulenberg
b122d3b8e5
docs: explain the 'set scrollercolor' option, for coloring the indicator
...
And mention that a background color does not work on libvte before 0.55.
To find out the version of libvte on your system:
ls -R1 /usr/lib | grep libvte | grep 00 | grep -o "0\..."
2020-09-02 19:55:24 +02:00
Benno Schulenberg
5b56791aef
docs: mention that anchors are visible when line numbers are shown
...
Suggested-by: Tomáš Mudruňka <mudrunka@spoje.net>
2020-08-03 10:27:57 +02:00
Benno Schulenberg
ee78f2348b
rcfile: rename bindable function 'curpos' to 'location'
...
It is better that the bindable function is named the same as the
tag in the help lines, and that it is not an ugly abbreviation.
2020-07-05 11:05:45 +02:00
Benno Schulenberg
da0ac58ecc
docs: document the new -O/--bookstyle and 'set bookstyle' options
2020-06-27 11:12:21 +02:00
Benno Schulenberg
26fb83c61f
docs: use 'bold' and 'light' instead of 'bright' in the sample nanorc
2020-06-15 15:30:52 +02:00
Benno Schulenberg
32ee39e44a
docs: document the --indicator (-q) and 'set indicator' options
2020-06-04 18:52:28 +02:00
Benno Schulenberg
d4ee6a2b53
options: rename --tempfile to --saveonexit, to be far clearer
...
A long option should describe what it does, not vaguely hint at it.
Also, in several places of nano's code we deal with actual temp files,
and then having a flag called TEMP_FILE that doesn't have anything to
do with temp files is somewhat confusing.
2020-04-30 19:12:54 +02:00
Benno Schulenberg
56d1214187
syntax: move distro-specific files down to a subdirectory, syntax/extra/
2020-04-14 19:05:41 +02:00
Benno Schulenberg
5755ecdbfc
options: let --afterends affect also the deleting of words (Ctrl+Delete)
...
It makes more sense that <Ctrl+Delete> deletes the same thing as what
<Shift+Ctrl+Right> would select.
Suggested-by: Liu Hao <lh_mouse@126.com>
2020-04-14 12:14:49 +02:00
Benno Schulenberg
66e64dd2d2
docs: in the sample nanorc file, refer instead of duplicating
...
Instead of duplicating information, just refer to 'man nanorc'.
Also reshuffle a paragraph, and add a suggestion to just select
the syntax files that will actually get used.
2020-04-09 10:27:39 +02:00
Benno Schulenberg
39ed865043
docs: improve the descriptions of --softwrap and 'set softwrap'
2020-03-19 13:10:28 +01:00
Benno Schulenberg
a91bc04e04
docs: update the form of an option, --suspendable / 'set suspendable'
2020-03-13 15:58:56 +01:00
Benno Schulenberg
639f37669a
docs: remove the note saying that nanorc files must be in Unix format
...
Since commit 98f038ad
from a month ago, nanorc files do not need to be
in Unix format (LF) but may also be in DOS (CR+LF) and Mac (CR) format.
2020-03-12 19:03:02 +01:00
Benno Schulenberg
3f5ba950d6
tweaks: suggest a few more alternative key bindings and unbindings
...
This demonstrates the presence of the 'savefile' function,
and makes the main help text look better.
2020-01-31 17:16:31 +01:00
Benno Schulenberg
0a52e92d4c
docs: for the alternative bindings, rebind ^C only in the main menu
...
Because ^C is needed for Cancel in most other menus.
This fixes https://bugs.debian.org/950223 .
Reported-by: Jonas Smedegaard <dr@jones.dk>
Bug existed since version 4.0, commit 3a170d2c
.
2020-01-31 16:54:55 +01:00
Benno Schulenberg
6c09504040
docs: stop saying that 'set fill' enables hard-wrapping -- it does not
...
This fixes https://savannah.gnu.org/bugs/?57477 .
2019-12-25 14:20:35 +01:00
Benno Schulenberg
c51f5f4bff
docs: mention that the 'nopauses' option is obsolete
2019-10-15 11:23:05 +02:00
Benno Schulenberg
7338b45d36
docs: remove some excessive detail from the sample nanorc file
...
The sample file should just mention the basics. The manual contains
all the details.
2019-10-06 14:50:27 +02:00
Benno Schulenberg
c95e5362e6
docs: mention that color rules are applied in the order they are listed
...
Suggested-by: Tiago Almeida <tjamadeira@gmail.com>
2019-10-06 14:27:29 +02:00
Benno Schulenberg
cdb9b04980
docs: add two examples of the 'tabgives' command to the sample nanorc
2019-10-03 16:41:10 +02:00
Benno Schulenberg
fea1901592
docs: remove "--" from the default value of 'quotestr'
...
Adjust the documentation to the removal of "--" in the previous commit.
2019-06-08 17:48:44 +02:00
Benno Schulenberg
c4e04eb682
docs: show double quotes where they are needed
...
Instead of saying that string parameters should be enclosed in
double quotes, just show the quotes in the relevant commands.
Also, rename the parameters, to better fit the subsequent description.
2019-06-07 11:15:02 +02:00
Benno Schulenberg
941637615b
docs: clarify that in nano regexes are extended regular expressions
...
And add a concise summary of the most important special characters.
This addresses https://savannah.gnu.org/bugs/?56438 .
2019-06-06 15:16:56 +02:00
Benno Schulenberg
209531a761
docs: remove all mention of --finalnewline, and undefault --nonewlines
2019-04-07 10:02:22 +02:00
Benno Schulenberg
610be482fa
docs: suggest a setting for 'stripecolor' in the sample nanorc
2019-03-09 09:54:27 +01:00
Benno Schulenberg
2c7d336711
bindings: rename 'cutwordleft' to 'chopwordleft', and similar for right
...
These bindable functions should not connote cutting, as they don't put
anything into the cutbuffer.
2019-02-24 17:31:40 +01:00
Benno Schulenberg
00713a7c47
docs: deprecate the use of morespace, smooth, nonewlines, and nowrap
2019-02-20 16:34:29 +01:00
Benno Schulenberg
60bdac2bbc
docs: describe breaklonglines, emptyline, finalnewline, jumpyscrolling
2019-02-19 19:06:26 +01:00
Benno Schulenberg
2eb1960523
docs: mention that 'quotestr' enables the rewrapping of comment blocks
...
Inspired-by: David Griffith <dave@661.org>
2019-01-23 20:01:49 +01:00
Benno Schulenberg
63db58cbfd
docs: adjust for the enhancement of the default quoting regex
2019-01-22 20:06:14 +01:00
Benno Schulenberg
dc99610c36
docs: reword and reshuffle the description of --rawsequences
...
It's not just about the numeric keypad, but about the interpretation
of all editing keys (arrows, Home, End, PageUp, PageDown, Insert, and
Delete), of the escape sequences that they produce.
2018-12-28 19:29:38 +01:00
Benno Schulenberg
67c69b2298
options: rename long version of -K from --rebindkeypad to --rawsequences
...
To better describe what it does, and to have full contrast with the
--rebinddelete option: the latter can now be shortened to --rebind
without getting a conflict, and --rawsequences can be abbreviated
to simply --raw and still make sense.
2018-12-28 17:35:55 +01:00
Benno Schulenberg
3a79766da6
rcfile, docs: remove deprecated forms of two options and five bindables
...
This addresses https://savannah.gnu.org/bugs/?53785 .
2018-12-03 10:25:55 +01:00
Brand Huntsman
ae3ec1784d
options: add --zap, that makes <Bsp> and <Del> erase a marked region
...
Using --zap or -Z on the command line, or 'set zap' in a nanorc file,
makes the <Bsp> and <Del> keys erase selected text (a marked region)
as they do in some other editors, and without affecting the cutbuffer.
This fulfills https://savannah.gnu.org/bugs/?54837 .
Requested-by: Liu Hao <lh_mouse@126.com>
Signed-off-by: Brand Huntsman <alpha@qzx.com>
2018-11-04 11:46:57 +01:00
Benno Schulenberg
33d67d5cee
docs: give suggestions for alternative key bindings in the sample nanorc
2018-10-15 17:19:40 +02:00
Benno Schulenberg
ddd033adaf
docs: remove a no-longer-needed suggestion from the sample nanorc
...
It would result in having both <Delete> and <Backspace> behaving as
Backspace, which seems senseless -- unless the <Delete> key produces
ASCII DEL and --rebinddelete is needed to make it behave as Delete.
In the latter case it would make more sense if --rebinddelete made
both rebindings: ASCII DEL to Delete and KEY_DC to Backspace, like
it used to be in the distant past, before commit 79a33bb3
.
2018-10-07 14:27:54 +02:00
Benno Schulenberg
f9134af504
docs, usage: mention that --showcursor now covers help texts too
2018-10-07 10:38:11 +02:00
Benno Schulenberg
27d2db2d1f
tweaks: improve a couple of comments in the sample nanorc
2018-09-09 10:14:04 +02:00
Benno Schulenberg
571676eb85
docs: improve a comment about rebinding <Backspace>
...
And move it up, to give the now-final comment a bit more prominence.
2018-09-09 08:33:23 +02:00
Benno Schulenberg
d04c8f88f1
docs: say that 'cutwordright' is now bound to <Ctrl+Delete> by default
...
Also, suggest to rebind ^H to 'cutwordleft' so that <Ctrl+Backspace>
will delete the word to the left of the cursor (on some terminals).
2018-07-22 19:27:50 +02:00
Benno Schulenberg
54cab02030
docs: improve the description of --nonewlines, and properly sort it
2018-06-01 15:54:08 +02:00
Benno Schulenberg
2633114b8e
docs: add a missing double quote in the default brackets string
...
It was accidentally lost three years ago, in commit 7e1bc82d
.
Also improve the description of this option in the other documents.
2018-06-01 15:53:57 +02:00
Benno Schulenberg
856322b01e
main: interpret only a double slash (//) as quoting, not a single one
...
Otherwise the first line of a multiline /*...*/-comment would be
seen as quoted and thus *not* as the first line of a paragraph.
In the code, use "/{2}" to prevent the remainder of the line
getting colored as a comment.
2018-06-01 09:21:03 +02:00
Benno Schulenberg
6fe132194c
docs: improve the description of the --autoindent option
2018-05-30 10:29:31 +02:00
Benno Schulenberg
cd8e932c65
main: add "/" to the quoting regex, to allow justifying //-comments
...
And adjust the documentation accordingly.
2018-05-27 20:29:52 +02:00