aboutsummaryrefslogtreecommitdiff
path: root/window-copy.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 986:Tiago Cunha2011-12-06
| | | | | | | | Support "jump to" like vi in copy mode using t and T keys. Also add x and X for delete in edit mode. From Ben Boeckel, thanks.
* Sync OpenBSD patchset 981:Tiago Cunha2011-11-25
| | | | | | Move word-separators to be a session rather than window option, from Ben Boeckel.
* Sync OpenBSD patchset 971:Tiago Cunha2011-10-31
| | | | | When copying, make repeat count indicate buffer to replace if used.
* Sync OpenBSD patchset 926:Tiago Cunha2011-07-03
| | | | | PANE_FREEZE doesn't do anything anymore, so remove it.
* Sync OpenBSD patchset 914:Tiago Cunha2011-05-22
| | | | | | | | | | Support setting the xterm clipboard when copying from copy mode using the xterm escape sequence for the purpose (if xterm is configured to allow it). Written by and much discussed Ailin Nemui, guidance on xterm/termcap/terminfo from Thomas Dickey.
* Sync OpenBSD patchset 913:Tiago Cunha2011-05-18
| | | | | | Add three new copy-mode commands - select-line, copy-line, copy-end-of-line. From Dave Disser and Randy Stauner a while back.
* Sync OpenBSD patchset 911:Tiago Cunha2011-05-18
| | | | | | Use button mouse mode not any for copy mode, fixes issues with putty. From Ailin Nemui.
* Sync OpenBSD patchset 897:Tiago Cunha2011-04-25
| | | | | | Tweak copy behaviour slightly in vi mode to be closer to real vi. From Tiago Resende.
* Sync OpenBSD patchset 896:Tiago Cunha2011-04-25
| | | | | | | | When mode-mouse is on (it is off by default), automatically enter copy mode when the mouse is dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel is scrolled off the bottom. Discussed with and written by hsim at gmx dot li.
* |PatchSet 873Nicholas Marriott2011-04-06
| | | | | | | | | | |Date: 2011/03/28 20:44:31 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Style: uint -> u_int and a missing else.
* Global paste buffers instead of per-session which renders copy-buffer useless.Tiago Cunha2010-12-30
| | | | | As a consequence buffer-limit is now a server option.
* Sync OpenBSD patchset 812:Tiago Cunha2010-12-30
| | | | | | Support all four of the xterm mouse modes. Based on a diff from hsim at gmx.li.
* Fix rectangle copy to behave like emacs - the cursor is not part of theNicholas Marriott2010-12-11
| | | | | selection on the right edge but on the left it is.
* Sync OpenBSD patchset 760:Tiago Cunha2010-09-18
| | | | | | When resizing the copy mode screen, don't allow it to end up with the viewable position beyond the size of the history.
* Sync OpenBSD patchset 758:Tiago Cunha2010-09-10
| | | | | Do not crash if the screen size is too small for the indicator in copy mode.
* Don't enable/disable invalid event pointers. Fixes SF #3033119.Micah Cowan2010-07-22
|
* Sync OpenBSD patchset 733:Tiago Cunha2010-07-02
| | | | | replace some magic mouse constants with defines for clarity. ok nicm
* Sync OpenBSD patchset 710:Tiago Cunha2010-06-06
| | | | | | | | | | 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).
* Use a macro-based mask for obtaining a key or modifier-set from the combination.Micah Cowan2010-06-05
| | | | | Display C-@, etc, as C-Space, in list-keys.
* Make double start-of-line do what double end-of-line does, on wrapped lines.Micah Cowan2010-06-05
|
* Pass in the session, rather than the client, to window modes' key() function.Micah Cowan2010-05-22
| | | | | We were only ever using the client to find the session anyway.
* Avoid crashing in copy-mode during resize, when our history-viewing offset ↵Micah Cowan2010-04-28
| | | | is larger than the new total number of history lines.
* Unbreak. Whoops.Nicholas Marriott2010-04-06
|
* Stupid style nits.Nicholas Marriott2010-04-06
|
* Merge output (more) and copy modes into one single mode (called copy).Micah Cowan2010-04-05
|
* Minor Nazi style tweaks to previous, and man page rephrasery.Nicholas Marriott2010-03-16
|
* Jump-forward, jump-backward in copy mode, based on vi's F and f commands.Micah Cowan2010-03-16
|
* Avoid use-after-free when cancelling copy mode.Nicholas Marriott2010-03-14
|
* Sync OpenBSD patchset 658:Tiago Cunha2010-03-08
| | | | | | | | 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.
* Sync OpenBSD patchset 657:Tiago Cunha2010-03-08
| | | | | | | | | | 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.
* Sync OpenBSD patchset 653:Tiago Cunha2010-02-26
| | | | | | Option to set the characters considered word separators in copy mode, from Micah Cowan.
* Sync OpenBSD patchset 651:Tiago Cunha2010-02-26
| | | | | | | 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.
* Sync OpenBSD patchset 648:Tiago Cunha2010-02-26
| | | | | | 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.
* Sync OpenBSD patchset 647:Tiago Cunha2010-02-18
| | | | | | Make next-word stop at beginning of word even if it is at the start of the line, from Micah Cowan.
* Sync OpenBSD patchset 645:Tiago Cunha2010-02-18
| | | | | | Don't strip add newline if only copying part of wrapped line. Problem spotted by and fix from Micah Cowan.
* Sync OpenBSD patchset 644:Tiago Cunha2010-02-18
| | | | | | Add "N" key to search the opposite way from the last search (reverse of "n"), from Micah Cowan.
* Sync OpenBSD patchset 636:Tiago Cunha2010-02-08
| | | | | Rectangle copy support, from Robin Lee Powell.
* Sync OpenBSD patchset 634:Tiago Cunha2010-02-05
| | | | | | | | | 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.
* Sync OpenBSD patchset 621:Tiago Cunha2010-01-28
| | | | | | Alter next-word to have vi-like movement behaviour, and add next-word-end with the existing emacs behaviour. From Micah Cowan.
* Sync OpenBSD patchset 619:Tiago Cunha2010-01-28
| | | | | Hugely simplify window_copy_cursor_next_word, which was way overcomplicated.
* Sync OpenBSD patchset 618:Tiago Cunha2010-01-28
| | | | | Update the selection properly after goto line or searching.
* Sync OpenBSD patchset 617:Tiago Cunha2010-01-28
| | | | | Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.
* Sync OpenBSD patchset 616:Tiago Cunha2010-01-25
| | | | | | Redraw properly when scrolling backward and the cursor is on the last line. Based on a fix from Micah Cowan.
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
* Sync OpenBSD patchset 567:Tiago Cunha2009-11-28
| | | | | | Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
* Sync OpenBSD patchset 548:Tiago Cunha2009-11-19
| | | | | Missed an unused variable :-/.
* Sync OpenBSD patchset 547:Tiago Cunha2009-11-19
| | | | | | | | | Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid data into functions in a new file, grid-utf8.c, and use sizeof intead of UTF8_DATA. Also nuke trailing whitespace from tmux.1, reminded by jmc.
* Sync OpenBSD patchset 422:Tiago Cunha2009-10-23
| | | | | Correctly nuke the EOL $ marker when scrolling, reported by martynas@, thanks.
* Sync OpenBSD patchset 407:Tiago Cunha2009-10-15
| | | | | | Add mode keys to move the cursor to the top, middle and bottom of the screen. H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs).
* Sync OpenBSD patchset 381:Tiago Cunha2009-10-12
| | | | | | | | | Clean up by introducing a wrapper struct for mouse clicks rather than passing three u_chars around. As a side-effect this fixes incorrectly rejecting high cursor positions (because it was comparing them as signed char), reported by Tom Doherty.