Nicholas Marriott
f7c42c21ba
Support all four of the xterm mouse modes. Based on a diff from hsim at
...
gmx.li.
2010-12-29 21:49:06 +00:00
Nicholas Marriott
0b8ce56d73
Fix rectangle copy to behave like emacs - the cursor is not part of the
...
selection on the right edge but on the left it is.
2010-12-11 17:57:28 +00:00
Nicholas Marriott
20ed20ea1e
Fix rectangle copy to behave like emacs - the cursor is not part of the
...
selection on the right edge but on the left it is.
2010-12-11 17:56:01 +00:00
Tiago Cunha
59dc08a7a0
Sync OpenBSD patchset 760:
...
When resizing the copy mode screen, don't allow it to end up with the
viewable position beyond the size of the history.
2010-09-18 15:41:18 +00:00
Nicholas Marriott
c1c5f43a01
When resizing the copy mode screen, don't allow it to end up with the
...
viewable position beyond the size of the history.
2010-09-11 15:39:55 +00:00
Tiago Cunha
28a0b6fd20
Sync OpenBSD patchset 758:
...
Do not crash if the screen size is too small for the indicator in copy mode.
2010-09-10 13:34:12 +00:00
Nicholas Marriott
bbf743769b
Do not crash if the screen size is too small for the indicator in copy mode.
2010-09-08 20:36:42 +00:00
Nicholas Marriott
a97b7ad11c
Fix a crash: if remain-on-exit is set and the pane has exited, the
...
buffers may not be valid, so do not try to disable/enable them when
switching to copy mode.
2010-07-22 21:10:51 +00:00
Micah Cowan
1944747759
Don't enable/disable invalid event pointers. Fixes SF #3033119 .
2010-07-22 19:51:48 +00:00
Tiago Cunha
46f27eab22
Sync OpenBSD patchset 733:
...
replace some magic mouse constants with defines for clarity. ok nicm
2010-07-02 02:56:07 +00:00
Ted Unangst
b4b9b831ee
replace some magic mouse constants with defines for clarity. ok nicm
2010-06-29 05:24:49 +00:00
Nicholas Marriott
dcc100f165
Use a macro-based mask for obtaining a key or modifier-set from the
...
combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan.
2010-06-06 19:00:13 +00:00
Tiago Cunha
f62d3d22bb
Sync OpenBSD patchset 710:
...
When the mode-mouse option is on, support dragging to make a selection
in copy mode.
Also support the scroll wheel, although xterm strangely does not ignore
it in application mouse mode, causing redraw artifacts when scrolling up
(other terminals appear to be better behaved).
2010-06-06 00:23:44 +00:00
Micah Cowan
227e458ebb
Use a macro-based mask for obtaining a key or modifier-set from the combination.
...
Display C-@, etc, as C-Space, in list-keys.
2010-06-05 20:29:11 +00:00
Nicholas Marriott
cc724f327a
Make start-of-line work the same as end-of-line on wrapped lines (jump
...
to real start if at edge of screen). By Micah Cowan.
2010-06-05 15:49:48 +00:00
Micah Cowan
d9c99b83c7
Make double start-of-line do what double end-of-line does, on wrapped lines.
2010-06-05 07:48:35 +00:00
Nicholas Marriott
43fa9a9ba6
When the mode-mouse option is on, support dragging to make a selection
...
in copy mode.
Also support the scroll wheel, although xterm strangely does not ignore
it in application mouse mode, causing redraw artifacts when scrolling up
(other terminals appear to be better behaved).
2010-05-31 19:51:29 +00:00
Nicholas Marriott
4f5c5b37b8
Pass in the session, rather than the client, to window modes' key()
...
function. We were only ever using the client to find the session anyway.
This allows send-key to work properly for manipulating copy mode from
outside tmux.
From Micah Cowan.
2010-05-23 19:42:19 +00:00
Micah Cowan
f11f71752a
Pass in the session, rather than the client, to window modes' key() function.
...
We were only ever using the client to find the session anyway.
2010-05-22 21:56:04 +00:00
Nicholas Marriott
2240199dbf
Fix crash when resizing in copy mode, when cursor can end up outside screen.
...
Reported by Romain Francois, fixed by Micah Cowan.
2010-04-28 18:19:16 +00:00
Micah Cowan
342a47bc77
Avoid crashing in copy-mode during resize, when our history-viewing offset is larger than the new total number of history lines.
2010-04-28 14:29:27 +00:00
Nicholas Marriott
cd0f22b96e
Unbreak. Whoops.
2010-04-06 22:02:52 +00:00
Nicholas Marriott
67300e9524
Stupid style nits.
2010-04-06 21:45:36 +00:00
Nicholas Marriott
ac9daf92d7
Merge copy mode and output mode, dropping the latter. Idea and code from
...
Micah Cowan.
2010-04-06 21:35:44 +00:00
Micah Cowan
2d74ce1d3a
Merge output (more) and copy modes into one single mode (called copy).
2010-04-05 05:11:44 +00:00
Nicholas Marriott
9abbe349af
paste-buffer should be per pane, from C. Coutinho.
2010-03-22 19:13:28 +00:00
Nicholas Marriott
0ac6efa6d5
Add vi-style "jump" commands for copy mode, from Micah Cowan.
2010-03-22 19:10:42 +00:00
Nicholas Marriott
33a90efc93
Minor Nazi style tweaks to previous, and man page rephrasery.
2010-03-16 17:51:32 +00:00
Micah Cowan
009d8d2ea7
Jump-forward, jump-backward in copy mode, based on vi's F and f commands.
2010-03-16 17:30:58 +00:00
Nicholas Marriott
48dd72005e
Fix a use-after-free when cancelling copy mode, or trying to repeat cancel.
...
ok kettenis
2010-03-14 23:31:23 +00:00
Nicholas Marriott
51eab54102
Avoid use-after-free when cancelling copy mode.
2010-03-14 23:17:59 +00:00
Tiago Cunha
b34c8f5f39
Sync OpenBSD patchset 658:
...
Permit keys in copy mode to be prefixed by a repeat count, entered with
[1-9] in vi mode, or M-[1-9] in emacs mode.
From Micah Cowan, tweaked a little by me.
2010-03-08 15:02:07 +00:00
Tiago Cunha
70f5384d8f
Sync OpenBSD patchset 657:
...
Extend the end-of-line key so that in normal mode a second press moves
the cursor to the end of a wrapped line (if present) and in rectangle
mode it toggles between the end of the text and the last cell on the
line.
From Micah Cowan.
2010-03-08 14:56:17 +00:00
Nicholas Marriott
7bc3f5dd8a
Permit keys in copy mode to be prefixed by a repeat count, entered with
...
[1-9] in vi mode, or M-[1-9] in emacs mode.
From Micah Cowan, tweaked a little by me.
2010-03-02 00:32:41 +00:00
Nicholas Marriott
56a33b157b
Extend the end-of-line key so that in normal mode a second press moves
...
the cursor to the end of a wrapped line (if present) and in rectangle
mode it toggles between the end of the text and the last cell on the
line.
From Micah Cowan.
2010-03-01 23:53:27 +00:00
Tiago Cunha
b7d5b911ac
Sync OpenBSD patchset 653:
...
Option to set the characters considered word separators in copy mode, from
Micah Cowan.
2010-02-26 13:31:39 +00:00
Tiago Cunha
a0e7539743
Sync OpenBSD patchset 651:
...
Another copy mode fix from Micah Cowan: in rectangle copy mode, the cursor
should not wrap at the end of the text on the line but should be allowed to
move freely.
2010-02-26 13:29:25 +00:00
Tiago Cunha
ecac081a55
Sync OpenBSD patchset 648:
...
copy mode uses the real screen as backing and if it is updated while copying,
strange things can happen. So, freeze reading from the pty while in copy mode.
2010-02-26 13:26:44 +00:00
Nicholas Marriott
6767072c9d
Option to set the characters considered word separators in copy mode, from
...
Micah Cowan.
2010-02-22 20:41:16 +00:00
Nicholas Marriott
73b8c3ebf3
Another copy mode fix from Micah Cowan: in rectangle copy mode, the cursor
...
should not wrap at the end of the text on the line but should be allowed to
move freely.
2010-02-22 20:28:21 +00:00
Nicholas Marriott
3a89d1ef7f
copy mode uses the real screen as backing and if it is updated while copying,
...
strange things can happen. So, freeze reading from the pty while in copy mode.
2010-02-19 00:03:21 +00:00
Tiago Cunha
f7646d2738
Sync OpenBSD patchset 647:
...
Make next-word stop at beginning of word even if it is at the start of the
line, from Micah Cowan.
2010-02-18 12:38:24 +00:00
Tiago Cunha
a9dacf10ce
Sync OpenBSD patchset 645:
...
Don't strip add newline if only copying part of wrapped line. Problem spotted
by and fix from Micah Cowan.
2010-02-18 12:36:18 +00:00
Tiago Cunha
66c38d8c5d
Sync OpenBSD patchset 644:
...
Add "N" key to search the opposite way from the last search (reverse of "n"),
from Micah Cowan.
2010-02-18 12:35:16 +00:00
Nicholas Marriott
a61b8a2033
Make next-word stop at beginning of word even if it is at the start of the
...
line, from Micah Cowan.
2010-02-17 21:27:18 +00:00
Nicholas Marriott
d285f7fd4d
Don't strip add newline if only copying part of wrapped line. Problem spotted
...
by and fix from Micah Cowan.
2010-02-17 20:58:24 +00:00
Nicholas Marriott
44ded35d5d
Add "N" key to search the opposite way from the last search (reverse of "n"),
...
from Micah Cowan.
2010-02-11 20:39:40 +00:00
Tiago Cunha
3c37b09272
Sync OpenBSD patchset 636:
...
Rectangle copy support, from Robin Lee Powell.
2010-02-08 18:13:17 +00:00
Nicholas Marriott
3ef3802629
Rectangle copy support, from Robin Lee Powell.
2010-02-06 17:35:01 +00:00
Tiago Cunha
fa5be75396
Sync OpenBSD patchset 634:
...
vi-style B, W and E keys in copy mode to navigate between words treating only
spaces as word separators. Also add . to the list of word separators for
standard word navigation.
From Micah Cowan, tweaked slightly by me.
2010-02-05 01:34:08 +00:00