Benno Schulenberg
d5ac1ed395
tweaks: transform the token DISABLE_COLOR to ENABLE_COLOR
2017-11-01 19:45:50 +01:00
Benno Schulenberg
2a4fc9591f
tweaks: transform the token DISABLE_SPELLER to ENABLE_SPELLER
2017-10-31 19:32:42 +01:00
Benno Schulenberg
f034992ed6
tweaks: transform the token DISABLE_WRAPJUSTIFY to ENABLED_WRAPORJUSTIFY
2017-10-31 17:40:54 +01:00
Benno Schulenberg
db0b849f9b
tweaks: transform the token DISABLE_JUSTIFY to ENABLE_JUSTIFY
2017-10-31 17:40:44 +01:00
Benno Schulenberg
4e03a245ac
tweaks: adjust two comments, and correct and a few cosmetic mistakes
2017-10-30 19:12:22 +01:00
Benno Schulenberg
028d12f4fb
tweaks: transform the token DISABLE_OPERATINGDIR to ENABLE_OPERATINGDIR
2017-10-29 21:08:07 +01:00
Benno Schulenberg
a5974bd1ec
tweaks: transform the token DISABLE_WRAPPING to ENABLE_WRAPPING
2017-10-29 21:00:09 +01:00
Benno Schulenberg
ff35a61355
tweaks: transform the token DISABLE_HISTORIES to ENABLE_HISTORIES
2017-10-29 19:43:05 +01:00
Benno Schulenberg
3f27c312c4
tweaks: get rid of some cluttering conditional compilation
...
In the tiny version, do_prompt() will now have an extra NULL
parameter, which will cost maybe twenty extra bytes of code.
That is acceptable when it saves thirty lines in the source.
2017-10-29 11:39:27 +01:00
Benno Schulenberg
42497f77e2
tweaks: rename some constants, to follow the same underscoreless scheme
2017-10-28 12:32:54 +02:00
Benno Schulenberg
86ef9db363
tweaks: remove a useless prefix from a hundred constants
...
And use a better word to describe the concise descriptions that
these constants refer to -- they are not messages.
2017-10-28 12:32:47 +02:00
Benno Schulenberg
160ababa55
tweaks: rename a macro, to make a little more sense
2017-10-28 12:32:36 +02:00
Benno Schulenberg
d84fb8d209
tweaks: remove a superfluous no-op function call
...
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
2017-10-28 12:32:27 +02:00
David Lawrence Ramsey
ddd300af5f
help: allow firstline and lastline to work at the search prompt
...
This addresses https://savannah.gnu.org/bugs/?52257 .
2017-10-25 19:35:41 +02:00
Benno Schulenberg
af20d45bc1
bindings: don't allow calling help when searching in the help viewer
...
This fixes https://savannah.gnu.org/bugs/?52246 .
2017-10-18 21:46:34 +02:00
Brand Huntsman
08b49534d5
bindings: allow exiting from the help viewer with F1, like with ^G
...
Signed-off-by: Brand Huntsman <alpha@qzx.com>
2017-10-18 21:10:06 +02:00
Benno Schulenberg
57899550aa
tweaks: change the arrows to triangles also for searching in file browser
2017-10-18 20:55:43 +02:00
Benno Schulenberg
e1e6c5f612
bindings: make the search function rebindable again in help and browser
...
Adjust to the changed meaning of 'whereis': it is no longer do_search()
but do_search_forward().
Hinted-at-by: Brand Huntsman <alpha@qzx.com>
2017-10-18 20:55:09 +02:00
Benno Schulenberg
58ecc034d0
tweaks: change the help-text arrows to triangles, to be more visible
...
Requested-by: Brand Huntsman <alpha@qzx.com>
2017-10-15 21:23:33 +02:00
Marco Diego Aurélio Mesquita
501d05c5d1
new feature: the ability to record and play back a series of keystrokes
...
Allow the user to record and run a single macro. The default binding
for starting and stopping the recording is M-: (Alt + colon) and for
running the macro M-; (Alt + semicolon).
This fulfills https://savannah.gnu.org/bugs/?50314 .
Requested-by: Peter Passchier <peter@passchier.net>
Signed-off-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2017-10-15 20:40:40 +02:00
Benno Schulenberg
3f735d22a1
bindings: make ^W start always a forward search (as there is ^Q now)
...
It would be silly for ^W to do a backward search too after using ^Q
once.
2017-10-14 20:34:51 +02:00
Benno Schulenberg
ba65cd48cc
bindings: make ^Q and ^S do something useful by default
...
^S will be the first thing people will try for saving a file,
and ^Q is somewhat mnemonic because it is to the left of ^W:
it searches backward.
Make these keystrokes available also in the tiny version.
2017-10-14 20:34:43 +02:00
Benno Schulenberg
c7eecd74de
new feature: a bindable function that starts always a backward search
2017-10-14 20:30:46 +02:00
Benno Schulenberg
c74d2632bb
tweaks: make the switching on and off of the cursor a bit more compact
2017-09-22 21:31:01 +02:00
Benno Schulenberg
ae34825f58
display: rework the switching on and off of the cursor
...
The basic idea is that the cursor is always off, except when it needs
to be on: when waiting for text input, and in a few other cases: when
something was searched and found in the help viewer, and in the file
browser when option -g is in effect.
This fixes https://savannah.gnu.org/bugs/?51923 .
Reported-by: Mike Frysinger <vapier@gentoo.org>
2017-09-20 21:35:25 +02:00
Benno Schulenberg
067a920517
tweaks: improve some comments, and rename a variable for symmetry
2017-09-17 17:16:36 +02:00
Benno Schulenberg
36e88032cb
tweaks: rename two variables, to make a little more sense
2017-09-17 16:54:45 +02:00
Marco Diego Aurélio Mesquita
c8363a0d0b
history: remember the commands that were executed during this session
...
Signed-off-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
2017-09-14 20:10:22 +02:00
Benno Schulenberg
cbf4f77d6b
titlebar: don't reshow version when dropping back to a single buffer
...
When multiple files were open and [x/n] was being shown in the title
bar, don't show nano's name and version number when just one buffer
remains open, but show [1/1] instead. It is less surprising.
2017-09-13 19:29:56 +02:00
Marco Diego Aurélio Mesquita
3fc89e0853
new feature: show current and total number of open buffers in title bar
...
When multiple buffers are open, replace nano's name and version number
with an indication how many buffers are open preceded by the sequence
number of the current buffer.
Signed-off-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2017-09-13 19:29:38 +02:00
Benno Schulenberg
98ec41b4fa
tweaks: rename three functions, to be shorter or clearer
2017-08-31 22:00:53 +02:00
David Lawrence Ramsey
633343de24
browser: allow backward/forward re-searches with Alt+Up/Alt+Down
...
Also bind 'N' to a backward re-search, while retaining 'n' for a
forward one, This matches the functionality in the help viewer.
2017-08-19 21:49:32 +02:00
Benno Schulenberg
873f99d96a
tweaks: show "where is next" in the help lines of the file browser
2017-08-19 18:11:59 +02:00
David Lawrence Ramsey
5237a42d65
weeding: remove the unused be_clever parameter from do_home()/do_end()
2017-08-18 20:44:46 +02:00
David Lawrence Ramsey
566a2daf12
tweaks: remove unneeded parentheses and blank line and braces
2017-08-14 21:46:25 +02:00
Benno Schulenberg
4562401505
bindings: hard-bind Alt+Up and Alt+Down to findprevious and findnext
...
So that these functions have bindings by default, and easy bindings.
Add them to the help viewer too, so that searching backward becomes
possible there.
2017-08-14 10:34:15 +02:00
Urja Rannikko
1cc030f7c1
bindings: hard-bind Alt+Left and Alt+Right to buffer switching
...
This also fixes https://savannah.gnu.org/bugs/?51735 .
Reported-by: Urja Rannikko <urjaman@gmail.com>
Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2017-08-14 10:06:29 +02:00
Benno Schulenberg
dd88842d5a
tweaks: elide the global variable 'full_operating_dir'
...
There is no need to retain the (relative) path that the user
specified, so we can simply reuse that variable.
2017-08-13 10:08:37 +02:00
Benno Schulenberg
80686bb525
tweaks: remove includes that appear to be superfluous
...
Without them, nano still compiles for me, with everything enabled,
even when using --enable-debug, --enable-utf8, and --with-slang.
2017-08-06 09:08:30 +02:00
Rishabh Dave
829a1a5050
new feature: allow pasting at all input prompts
...
Include the shortcut for 'Uncut' into most menus, and add an uncut
function for the status bar, so that it becomes possible to paste
the first line of the cutbuffer at any text-input prompt.
This fulfills https://savannah.gnu.org/bugs/?48501 .
Requested-by: Benno Schulenberg <bensberg@telfort.nl>
Signed-off-by: Rishabh Dave <rishabhddave@gmail.com>
2017-07-29 13:48:22 +02:00
David Lawrence Ramsey
beae2da10d
weeding: remove redundant casts of nmalloc()
...
A cast on the same line as a variable declaration is superfluous,
because it effectively defines the type of the variable twice.
2017-07-27 21:54:37 +02:00
Benno Schulenberg
1e2d9a697a
tweaks: rename a constant, to match the corresponding option
2017-07-14 16:14:02 +02:00
Benno Schulenberg
6855b79267
tweaks: swap ^X and ^L in the help lines of the help viewer
...
I like it better that ^X stays in the same position compared to the
main screen: the lower left corner.
2017-07-13 16:47:12 +02:00
Benno Schulenberg
934a2192dc
screen: retain the same help-line tags when the window is resized
...
This fixes https://savannah.gnu.org/bugs/?51457 .
2017-07-13 11:42:49 +02:00
David Lawrence Ramsey
7e9799d42b
text: remove the last usage of cols in do_indent() and do_unindent()
...
Since all indentation and unindentation is by a tab, or by a tab's
worth of spaces, use tabsize directly.
2017-07-12 17:23:46 +02:00
David Lawrence Ramsey
2367f3d8e6
text: make do_unindent() an exact copy of do_indent()
...
This is the first step toward splitting them into two dedicated
functions, instead of letting do_indent() handle both cases.
2017-07-12 16:45:41 +02:00
Benno Schulenberg
78bc8b698c
tweaks: avoid a clang warning about an expression being treated as NULL
...
When compiling with 'clang', it would say: warning: expression which
evaluates to zero treated as a null pointer constant of type 'char *'.
2017-07-10 10:34:16 +02:00
David Lawrence Ramsey
6295cca03b
tweaks: correct a parameter type, and correct two empty initializations
...
This avoids some warnings when compiled with -pedantic:
ISO C forbids comparison of ‘void *’ with function pointer
ISO C forbids empty initializer braces
2017-07-03 09:40:55 +02:00
Benno Schulenberg
16482f99b8
tweaks: unglobalize the nodelay_mode variable
2017-06-04 12:15:26 +02:00
Benno Schulenberg
621eb904b3
bindings: in the tiny version exclude word jumping from the prompts
...
In the tiny version, Ctrl+Left and Ctrl+Right are available only
in the editor itself and in the file browser.
This fixes https://savannah.gnu.org/bugs/?51173 .
2017-06-04 11:13:03 +02:00