aboutsummaryrefslogtreecommitdiff
path: root/window-copy.c
Commit message (Collapse)AuthorAge
...
* Only exit mouse mode on scroll wheel when actually reaching the end ofNicholas Marriott2012-04-01
| | | | the history, from James Nylen.
* Add a wrap-search option to turn off wrapping of searches in copyNicholas Marriott2012-03-17
| | | | mode. From Jacobo de Vera.
* Always remember last cursor position when moving up or down, not justNicholas Marriott2012-03-11
| | | | for if crossing zero length lines. From Itay Perl.
* Support "jump to" like vi in copy mode using t and T keys. Also add xNicholas Marriott2011-12-04
| | | | | | and X for delete in edit mode. From Ben Boeckel, thanks.
* Move word-separators to be a session rather than window option, from BenNicholas Marriott2011-11-15
| | | | Boeckel.
* When copying, make repeat count indicate buffer to replace if used.Nicholas Marriott2011-10-23
|
* PANE_FREEZE doesn't do anything anymore, so remove it.Nicholas Marriott2011-06-27
|
* Support setting the xterm clipboard when copying from copy mode usingNicholas Marriott2011-05-18
| | | | | | | | 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.
* Add three new copy-mode commands - select-line, copy-line,Nicholas Marriott2011-05-18
| | | | copy-end-of-line. From Dave Disser and Randy Stauner a while back.
* Use button mouse mode not any for copy mode, fixes issues withNicholas Marriott2011-05-18
| | | | putty. From Ailin Nemui.
* Tweak copy behaviour slightly in vi mode to be closer to real vi. FromNicholas Marriott2011-04-24
| | | | Tiago Resende.
* When mode-mouse is on (it is off by default), automatically enter copyNicholas Marriott2011-04-19
| | | | | | 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.
* Style: uint -> u_int and a missing else.Nicholas Marriott2011-03-28
|
* Change from a per-session stack of buffers to one global stack which isNicholas Marriott2010-12-30
| | | | | | | much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
* Support all four of the xterm mouse modes. Based on a diff from hsim atNicholas Marriott2010-12-29
| | | | 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.
* When resizing the copy mode screen, don't allow it to end up with theNicholas Marriott2010-09-11
| | | | viewable position beyond the size of the history.
* Do not crash if the screen size is too small for the indicator in copy mode.Nicholas Marriott2010-09-08
|
* Fix a crash: if remain-on-exit is set and the pane has exited, theNicholas Marriott2010-07-22
| | | | | buffers may not be valid, so do not try to disable/enable them when switching to copy mode.
* replace some magic mouse constants with defines for clarity. ok nicmTed Unangst2010-06-29
|
* Use a macro-based mask for obtaining a key or modifier-set from theNicholas Marriott2010-06-06
| | | | combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan.
* Make start-of-line work the same as end-of-line on wrapped lines (jumpNicholas Marriott2010-06-05
| | | | to real start if at edge of screen). By Micah Cowan.
* When the mode-mouse option is on, support dragging to make a selectionNicholas Marriott2010-05-31
| | | | | | | | 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).
* Pass in the session, rather than the client, to window modes' key()Nicholas Marriott2010-05-23
| | | | | | | | | 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.
* Fix crash when resizing in copy mode, when cursor can end up outside screen.Nicholas Marriott2010-04-28
| | | | Reported by Romain Francois, fixed by Micah Cowan.
* Merge copy mode and output mode, dropping the latter. Idea and code fromNicholas Marriott2010-04-06
| | | | Micah Cowan.
* paste-buffer should be per pane, from C. Coutinho.Nicholas Marriott2010-03-22
|
* Add vi-style "jump" commands for copy mode, from Micah Cowan.Nicholas Marriott2010-03-22
|
* Fix a use-after-free when cancelling copy mode, or trying to repeat cancel.Nicholas Marriott2010-03-14
| | | | ok kettenis
* Permit keys in copy mode to be prefixed by a repeat count, entered withNicholas Marriott2010-03-02
| | | | | | [1-9] in vi mode, or M-[1-9] in emacs mode. From Micah Cowan, tweaked a little by me.
* Extend the end-of-line key so that in normal mode a second press movesNicholas Marriott2010-03-01
| | | | | | | | 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.
* Option to set the characters considered word separators in copy mode, fromNicholas Marriott2010-02-22
| | | | Micah Cowan.
* Another copy mode fix from Micah Cowan: in rectangle copy mode, the cursorNicholas Marriott2010-02-22
| | | | | should not wrap at the end of the text on the line but should be allowed to move freely.
* copy mode uses the real screen as backing and if it is updated while copying,Nicholas Marriott2010-02-19
| | | | strange things can happen. So, freeze reading from the pty while in copy mode.
* Make next-word stop at beginning of word even if it is at the start of theNicholas Marriott2010-02-17
| | | | line, from Micah Cowan.
* Don't strip add newline if only copying part of wrapped line. Problem spottedNicholas Marriott2010-02-17
| | | | by and fix from Micah Cowan.
* Add "N" key to search the opposite way from the last search (reverse of "n"),Nicholas Marriott2010-02-11
| | | | from Micah Cowan.
* Rectangle copy support, from Robin Lee Powell.Nicholas Marriott2010-02-06
|
* vi-style B, W and E keys in copy mode to navigate between words treating onlyNicholas Marriott2010-02-04
| | | | | | | spaces as word separators. Also add . to the list of word separators for standard word navigation. From Micah Cowan, tweaked slightly by me.
* Alter next-word to have vi-like movement behaviour, and add next-word-end withNicholas Marriott2010-01-27
| | | | the existing emacs behaviour. From Micah Cowan.
* Hugely simplify window_copy_cursor_next_word, which was way overcomplicated.Nicholas Marriott2010-01-25
|
* Update the selection properly after goto line or searching.Nicholas Marriott2010-01-25
|
* Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.Nicholas Marriott2010-01-25
|
* Redraw properly when scrolling backward and the cursor is on the lastNicholas Marriott2010-01-24
| | | | line. Based on a fix from Micah Cowan.
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott2009-11-26
| | | | the rest to reduce lint output.
* Missed an unused variable :-/.Nicholas Marriott2009-11-18
|
* Cleanup by moving various (mostly horrible) little bits handling UTF-8 gridNicholas Marriott2009-11-18
| | | | | | | 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.
* Correctly nuke the EOL $ marker when scrolling, reported by martynas@, thanks.Nicholas Marriott2009-10-20
|
* Add mode keys to move the cursor to the top, middle and bottom of the screen.Nicholas Marriott2009-10-13
| | | | H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs).