summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window-copy.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Support paste key in copy mode input (for search etc). Also clamp lengthnicm2014-01-221-6/+25
| | | | to screen width.
* Only exit copy mode at the bottom if no selection in progress, fromnicm2014-01-221-3/+7
| | | | Benoit Pierre.
* missing unsigned char casts areound tolower()deraadt2013-11-201-3/+3
| | | | ok nicm
* Support case insensitive searching in the same manner as emacs - allnicm2013-11-091-13/+43
| | | | | lowercase means case insensitive, any uppercase means case sensitive. From J Raynor.
* Correctly redraw the top two lines in copy mode when they are selected -nicm2013-11-081-40/+39
| | | | | the selection was being updated before the redraw so the markings were lost. Based on a fix from J Raynor.
* Key to swap to other end of selection (bound to o with vi keys), from Jnicm2013-10-231-1/+39
| | | | Raynor.
* Make next-word-end work properly with vi(1) keys, reported by patricknicm2013-07-121-4/+7
| | | | keshishian.
* Whitespace nits, from Ben Boeckel.nicm2013-07-051-2/+2
|
* Act like vi(1) when moving words, from Ben Boeckel.nicm2013-07-051-1/+6
|
* Create a new context when copying instead of using the inputnicm2013-03-251-4/+8
| | | | | context. The input context may not exist yet. Fixes crash when copying from config file errors.
* Extend jobs to support writing and use that for copy-pipe instead ofnicm2013-03-251-12/+12
| | | | popen, from Chris Johnsen.
* Add copy-pipe mode command to copy selection and also pipe to a command.nicm2013-03-221-13/+63
|
* No more lint means no more ARGSUSED.nicm2013-03-221-2/+1
|
* Automatically reflow wrapped lines when a pane is resized, requested bynicm2013-02-051-3/+3
| | | | many over the years and finally implemented by Richard Woodbury.
* Rather than having two grids for each pane, one for ASCII and one fornicm2013-01-181-46/+39
| | | | | UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
* When scrolling in copy mode with the mouse, scroll screen rather thannicm2012-11-271-3/+3
| | | | | moving cursor. This change from Ailin Nemui, alternative to a change from Stephen Hicks.
* Make mouse event structure clearer by defining events (up, click, drag)nicm2012-10-261-6/+6
| | | | | and simplifying how buttons and wheels are represented, from Ailin Nemui. Should be no functional changes.
* Fix search forward so it can match strings on the last line, SF bugnicm2012-09-251-2/+2
| | | | 3571114 from "LiJunLe".
* Instead of numbering choose mode items 0-9a-z and then nothing, numbernicm2012-08-111-9/+3
| | | | | them all and if there are more than 10 use a prompt when 0-9 is pressed. From Thomas Adam.
* xfree is not particularly helpful, remove it. From Thomas Adam.nicm2012-07-101-7/+6
|
* Minor style nits - return ().nicm2012-04-011-4/+4
|
* Only exit mouse mode on scroll wheel when actually reaching the end ofnicm2012-04-011-4/+3
| | | | the history, from James Nylen.
* Add a wrap-search option to turn off wrapping of searches in copynicm2012-03-171-5/+7
| | | | mode. From Jacobo de Vera.
* Always remember last cursor position when moving up or down, not justnicm2012-03-111-3/+3
| | | | for if crossing zero length lines. From Itay Perl.
* Support "jump to" like vi in copy mode using t and T keys. Also add xnicm2011-12-041-4/+100
| | | | | | and X for delete in edit mode. From Ben Boeckel, thanks.
* Move word-separators to be a session rather than window option, from Bennicm2011-11-151-4/+4
| | | | Boeckel.
* When copying, make repeat count indicate buffer to replace if used.nicm2011-10-231-20/+23
|
* PANE_FREEZE doesn't do anything anymore, so remove it.nicm2011-06-271-3/+1
|
* Support setting the xterm clipboard when copying from copy mode usingnicm2011-05-181-1/+4
| | | | | | | | 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,nicm2011-05-181-1/+21
| | | | copy-end-of-line. From Dave Disser and Randy Stauner a while back.
* Use button mouse mode not any for copy mode, fixes issues withnicm2011-05-181-4/+4
| | | | putty. From Ailin Nemui.
* Tweak copy behaviour slightly in vi mode to be closer to real vi. Fromnicm2011-04-241-8/+22
| | | | Tiago Resende.
* When mode-mouse is on (it is off by default), automatically enter copynicm2011-04-191-11/+18
| | | | | | 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.nicm2011-03-281-6/+6
|
* Change from a per-session stack of buffers to one global stack which isnicm2010-12-301-7/+7
| | | | | | | 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 atnicm2010-12-291-6/+8
| | | | gmx.li.
* Fix rectangle copy to behave like emacs - the cursor is not part of thenicm2010-12-111-3/+3
| | | | 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 thenicm2010-09-111-1/+3
| | | | viewable position beyond the size of the history.
* Do not crash if the screen size is too small for the indicator in copy mode.nicm2010-09-081-1/+3
|
* Fix a crash: if remain-on-exit is set and the pane has exited, thenicm2010-07-221-3/+5
| | | | | 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 nicmtedu2010-06-291-15/+6
|
* Use a macro-based mask for obtaining a key or modifier-set from thenicm2010-06-061-4/+4
| | | | 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 (jumpnicm2010-06-051-1/+11
| | | | to real start if at edge of screen). By Micah Cowan.
* When the mode-mouse option is on, support dragging to make a selectionnicm2010-05-311-5/+49
| | | | | | | | 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()nicm2010-05-231-13/+11
| | | | | | | | | 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.nicm2010-04-281-1/+3
| | | | Reported by Romain Francois, fixed by Micah Cowan.
* Merge copy mode and output mode, dropping the latter. Idea and code fromnicm2010-04-061-71/+188
| | | | Micah Cowan.
* paste-buffer should be per pane, from C. Coutinho.nicm2010-03-221-1/+1
|
* Add vi-style "jump" commands for copy mode, from Micah Cowan.nicm2010-03-221-2/+119
|
* Fix a use-after-free when cancelling copy mode, or trying to repeat cancel.nicm2010-03-141-4/+4
| | | | ok kettenis