summaryrefslogtreecommitdiffstats
path: root/window-copy.c
AgeCommit message (Collapse)Author
2020-04-06job_run needs fewer arguments.Nicholas Marriott
2020-04-06Various fixes for copy mode from master.Nicholas Marriott
2020-04-06Check previous line rather than an extra line, from Anindya Mukherjee.nicm
2020-04-06Only search the visible part of the history when marking (highlighting)nicm
search terms, much faster than searching the whole history.
2020-04-06Add a 10 second timeout to prevent searches taking too much time, fromnicm
Anindya Mukherjee.
2020-04-01Do not go down the regex search path (which is expensive because we neednicm
to convert the grid data into a string for regexec and reverse it to find the grid position) if the search string does not contain any regex special characters.
2020-04-01Use a comparison to check for wrap and avoid an expensive modulus.nicm
2020-04-01Performance improvements for regex searching, most notably:nicm
- Use the grid data directly instead of copying it. - Special case the most typical one byte character cells and use memcmp for multiple bytes instead of a handrolled loop. - Hoist regcomp out of the loop into the calling functions. GitHub issue 2143. Also a man page from from jmc@.
2020-04-01Add non-regex search variants to avoid the performance cost for peoplenicm
with large histories or long lines.
2020-02-24Change mouse selection so that after selecting a word, dragging selectsnicm
only words and similar for lines. From Anindya Mukherjee.
2020-02-20Add selection_active format for when the selection is present but notnicm
moving with the cursor, from Mark Kelly.
2020-02-13Do not jump to next word end if already on a word end when selecting anicm
word. Fixes select-word with single character words and vi(1) keys. From Mark Kelly.
2019-12-27Support regex search in copy mode, from Anindya Mukherjee in GitHubnicm
issue 2038.
2019-12-11Tweak previous to check the wrapped flag and stop if not set.nicm
2019-12-11Allow search across wrapped lines and fix some inconsistencies in how thnicm
position is represented, GitHub issue 2014 from Anindya Mukherjee.
2019-11-25Don't use motion flag uninitialized.nicm
2019-11-25Fix a warning in previous.nicm
2019-11-25Do not clear search marks on cursor movement with vi(1) keys, from Ericnicm
Pruitt in GitHub issue 1985.
2019-11-07Add -F flag to send-keys to expand formats in search-backward andnicm
forward copy mode commands, this makes it easier to use the cursor_word and cursor_line formats. From Anindya Mukherjee in GitHub issue 1964.
2019-10-23Use the existing code in format.c to add foramts for word and line atnicm
cursor position in copy mode, from Anindya Mukherjee.
2019-10-19Add formats for cursor and selection position in copy mode, from Jason Felice.nicm
2019-09-10Set up format tree for %if, GitHub issue 1896.nicm
2019-09-09Add cursor-down-and-cancel, from Mark Kelly.nicm
2019-08-14Default to previous search string for search-forward andnicm
search-backward, from Leah Neukirchen.
2019-08-01Correctly wrap search in copy mode even if at the very top left, GitHubnicm
issue 1845.
2019-08-01Select the correct word for select-word when already at the start of anicm
word, GitHub issue 1820.
2019-07-08Clear search marks before resize, GitHub issue 1823.nicm
2019-07-05Do not use uninitialized buffer name.nicm
2019-06-13Set the cursor x at the same time as changing the y or the end of linenicm
marker may not be redrawn.
2019-06-05Need to increment the argument to skip the prefix earlier, fixesnicm
repeated incremental search in copy mode, reported by Kaushal Modi in GitHub issue 1780.
2019-05-26Add formats for word and line under the mouse and use them to add somenicm
items to the pane menu.
2019-05-15Fix dragging when in view mode rather than copy mode, GitHub issue 1740nicm
from Brad Town.
2019-05-12Fix some indentation and dead assignments.nicm
2019-05-07Adjust the same bit to adjust the selection for history-top andnicm
history-bottom as for cursor-up and cursor-down. GitHub issue 1723.
2019-05-03Do not store the mouse position we calculate as the start of a drag backnicm
into the mouse event that later code uses, it has been adjusted and they should use the original position. GitHub issue 1710.
2019-05-01Remove unused variable from Thomas Adam.nicm
2019-04-29Add support for keys to jump between matching brackets - C-M-f and C-M-bnicm
in emacs, % in vi. Suggested by and help from Chris Barber in GitHub issue 1666.
2019-04-25Automatically scroll if dragging to create a selection with the mousenicm
and the cursor reaches the top or bottom line.
2019-04-23Add -no-clear variants of copy-selection and copy-pipe which do notnicm
clear the selection after copying. Make copy-pipe clear the selection by default to be consistent with copy-selection. From Avi Halachmi.
2019-04-02Add an argument to copy commands to set the prefix for the buffer name,nicm
allows buffers for different sessions to be named separately.
2019-03-27Fix stop-selection, from Avi Halachmi.nicm
2019-03-26Break copy mode commands into individual functions instead of a big loadnicm
of if statements.
2019-03-12DECRC and DECSC apparently need to preserve origin mode as well, basednicm
on a fix from Marc Reisner.
2019-03-12Allow multiple modes to be open in a pane. A stack of open modes is keptnicm
and the previous restored when the top is exited. If a mode that is already on the stack is entered, the existing instance is moved to the top as the active mode rather than being opened new.
2019-03-08Make the mode used to view command output (a variant of copy mode) usenicm
its own mode definition struct with a different init function rather than calling special setup functions.
2019-03-08Do not use window mode entry after free.nicm
2019-03-07Add a separate mode struct for the active window mode if any.nicm
2019-03-07Tidy changing the mode into window_copy_init_for_output.nicm
2019-03-07Make adding mode formats a function pointer as well.nicm
2018-12-18Pass window into mode functions.nicm