summaryrefslogtreecommitdiffstats
path: root/window-copy.c
AgeCommit message (Collapse)Author
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
2018-11-28Handle UTF-8 in word-separators option, GitHub issue 1551.nicm
2018-11-08It isn't possible to specify buffer name to copy mode commands now, sonicm
remove the function argument.
2018-10-03Do not move the cursor when the mouse wheel is used, GitHub issue 1493.nicm
2018-09-25Allow panes to be 1 line or column by redrawing instead of using thenicm
scroll region, from Soeren Tempel in GitHub issue 1487.
2018-09-10Do not clear selection when searching.nicm
2018-09-03Allow a large line number to go to the end with goto-line, from Marknicm
Kelly in GitHub issue 1460.
2018-09-03Fix selection test, from Takeshi Banse.nicm
2018-08-29Reset line flag when clearing selection, GitHub issue 1454.nicm
2018-08-23Move job struct into job.c.nicm
2018-08-20Fix problems with page scrolling in copy mode, GitHub issue 1440 fromnicm
Amos Bird.
2018-08-05calloc the mode data instead of malloc and initialize everything.nicm
2018-08-01Initialize new lineflag member.nicm
2018-07-31Move struct screen_sel into screen.c and tidy up members that are onlynicm
used by copy mode.
2018-07-06Add a rectangle_toggle format, from Hirokazu Hata.nicm
2018-07-04Add accessors for grid linedata member, for some future work. From Dannicm
Aloni.
2018-06-26Do not take address of a member of a NULL pointer. GitHub issue 1382nicm
from Kamil Rytarowski.
2018-04-23Check whether cursor is at start or end when copying rectangularnicm
selections, from tb@.
2018-03-08Add a missing client-detached hook when the server shuts down, and donicm
not exit until jobs started from run-shell/if-shell have finished (add a job flags member and a flag to indicate other jobs). GitHub issue 1245.
2017-11-16Add -and-cancel variants for scrolling commands to exit copy mode whennicm
the bottom is reached, from Stephen Hicks.
2017-11-13When searching in copy mode, do not scroll if the result is already onnicm
screen. GitHub issue 1150.
2017-09-13Remove unused (always 1) arguments from some functions, from Danielnicm
Mueller in GitHub issue 1073.
2017-09-04Move to current mouse position not last when clcking in copy mode; fixesnicm
GitHub issue 1055. Also a man page fix from jmc.
2017-08-29Redraw rectangle selections properly when cursor at end, GitHub issue 992.nicm
2017-08-23Fix searching when match is at end of line, from Brad Town.nicm
2017-08-02Add selection_present format so commands in copy mode can use it, GitHubnicm
issue 1028.
2017-06-09Add a hook when the clipboard is set.nicm
2017-06-03Make set-clipboard a three-state option so tmux itself can ignore thenicm
sequencess.
2017-05-30Rewrite of choose mode, both to simplify and tidy the code and to addnicm
some modern features. Now the common code is in mode-tree.c, which provides an API used by the three modes now separated into window-{buffer,client,tree}.c. Buffer mode shows buffers, client mode clients and tree mode a tree of sessions, windows and panes. Each mode has a common set of key bindings plus a few that are specific to the mode. Other changes are: - each mode has a preview pane: for buffers this is the buffer content (very useful), for others it is a preview of the pane; - items may be sorted in different ways ('O' key); - multiple items may be tagged and an operation applied to all of them (for example, to delete multiple buffers at once); - in tree mode a command may be run on the selected item (session, window, pane) or on tagged items (key ':'); - displayed items may be filtered in tree mode by using a format (this is used to implement find-window) (key 'f'); - the custom format (-F) for the display is no longer available; - shortcut keys change from 0-9, a-z, A-Z which was always a bit weird with keys used for other uses to 0-9, M-a to M-z. Now that the code is simpler, other improvements will come later. Primary key bindings for each mode are documented under the commands in the man page (choose-buffer, choose-client, choose-tree). Parts written by Thomas Adam.
2017-05-29Do not factor in screen_hsize() for the visible copy mode screen whennicm
adjusting the selection, it should never have any useful history (and when it does, after resize, we shouldn't use it). From Michal Mazurek.
2017-05-12Scrolling needs to use background colour.nicm