- 15 Oct, 2017 1 commit
-
-
Marco Diego Aurélio Mesquita authored
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>
-
- 14 Oct, 2017 2 commits
-
-
Benno Schulenberg authored
^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.
-
Benno Schulenberg authored
-
- 13 Oct, 2017 1 commit
-
-
Viorel Bota authored
Before writing a file out, nano should check that the file on disk hasn't been modified since it was read -- not only for the normal "Write Out" action (^O), but also for "Save File" (future ^S) and for "Save and Exit" (^X when --tempfile is used). When writing fails and --tempfile is in effect, don't go on to prompt for a file name; instead let the user decide what she wants to do. This fixes https://savannah.gnu.org/bugs/?51040 . Signed-off-by:
Viorel Bota <botaviorel@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@telfort.nl>
-
- 22 Sep, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 20 Sep, 2017 1 commit
-
-
Benno Schulenberg authored
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>
-
- 17 Sep, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 14 Sep, 2017 1 commit
-
-
Marco Diego Aurélio Mesquita authored
Signed-off-by:
Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
-
- 13 Sep, 2017 2 commits
-
-
Benno Schulenberg authored
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.
-
Marco Diego Aurélio Mesquita authored
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>
-
- 12 Sep, 2017 1 commit
-
-
David Lawrence Ramsey authored
The function does not contain any comment-specific code, so it can be used to handle any kind of multiline undo item. Also, extend the undo group structure to contain an array of strings, one for each line in the group. When indent/unindent is hooked up to the undo/redo code, this will allow the latter to restore the exact original indents.
-
- 31 Aug, 2017 2 commits
-
-
Benno Schulenberg authored
And use these constants in another context too.
-
Benno Schulenberg authored
-
- 19 Aug, 2017 1 commit
-
-
David Lawrence Ramsey authored
Also bind 'N' to a backward re-search, while retaining 'n' for a forward one, This matches the functionality in the help viewer.
-
- 18 Aug, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
-
- 14 Aug, 2017 1 commit
-
-
Urja Rannikko authored
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>
-
- 13 Aug, 2017 2 commits
-
-
Benno Schulenberg authored
Further, slightly reword an error message so it is appropriate also when an out-of-bounds file is specified on the command line.
-
Benno Schulenberg authored
There is no need to retain the (relative) path that the user specified, so we can simply reuse that variable.
-
- 06 Aug, 2017 1 commit
-
-
David Lawrence Ramsey authored
Match three variable names in the prototypes to the changd ones in their functions in utils.c.
-
- 29 Jul, 2017 1 commit
-
-
Rishabh Dave authored
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>
-
- 24 Jul, 2017 1 commit
-
-
David Lawrence Ramsey authored
Commit 28beb3f9 added the 'forreal' parameter to prevent spotlight() from placing the cursor wrongly due to an invalid placewewant. However, since the variable-width softwrap overhaul (specifically, since commit 8490f4ac), place_the_cursor() no longer checks placewewant, so the parameter is no longer needed. Furthermore, dropping 'forreal' and thus always setting current_y won't affect the operation of spotlight(), since the only functions that use spotlight() (do_replace_loop() and do_int_spell_fix()) both call edit_refresh() beforehand, which means that current_y will already have been set to the value it will be set to again.
-
- 12 Jul, 2017 2 commits
-
-
David Lawrence Ramsey authored
Since all indentation and unindentation is by a tab, or by a tab's worth of spaces, use tabsize directly.
-
David Lawrence Ramsey authored
This is the first step toward splitting them into two dedicated functions, instead of letting do_indent() handle both cases.
-
- 09 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 07 Jul, 2017 6 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
And then elide the function entirely as it's called just once.
-
David Lawrence Ramsey authored
spotlight() now displays softwrapped lines chunk by chunk instead of all at once. Since softwrapped lines are no longer of constant width, the latter approach would fail if softwrapping breaks the spotlighted text. Instead of taking a string, spotlight() now takes the starting and ending columns of that string. Also, its handling of softwrapped lines is now split off into a separate function, spotlight_softwrapped().
-
David Lawrence Ramsey authored
Add the new function actual_last_column() to accomplish this.
-
David Lawrence Ramsey authored
get_chunk_row() replaces the formula "column / editwincols". get_chunk_leftedge() replaces "(column / editwincols) * editwincols". get_last_chunk_row() replaces "strlenpt() / editwincols". get_last_chunk_leftedge() replaces "(strlenpt() / editwincols) * editwincols". This prepares us for any changes in those formulas, and for more such functions later.
-
David Lawrence Ramsey authored
The new function find_softwrap_breakpoint() returns the column number of the last position in screen range where we can wrap the given text without breaking a two-column character in half (as was done until now). The returned column number is the leftedge of the next softwrapped chunk. If the end of the text is reached while searching for a wrapping point, the parameter end_of_line is set to TRUE. The new function get_chunk() uses find_softwrap_breakpoint() to find the row and leftedge corresponding to a given column of a given line.
-
- 06 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 04 Jun, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 29 May, 2017 1 commit
-
-
Benno Schulenberg authored
Achieve this by making the suppression flag global, so that we can just reset it instead of making an improper call of do_cursorpos(). This fixes the secondary part of https://savannah.gnu.org/bugs/?51134.
-
- 11 May, 2017 1 commit
-
-
Benno Schulenberg authored
When spotlighting the string to be replaced, placewewant isn't valid, so tell place_the_cursor() to ignore its value to avoid the cursor getting mistakenly placed at the beginning of the next row. This fixes https://savannah.gnu.org/bugs/?50997 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 09 May, 2017 1 commit
-
-
Benno Schulenberg authored
Also, allow rebinding the word and block jumping functions in the tiny version when nanorc files are reenabled.
-