summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-copy.c
AgeCommit message (Collapse)Author
2014-02-17Fix memory leaks with paste_replace, based on changes from J Raynor.Nicholas Marriott
2014-01-28Allow replacing each of the many sets of separate foo-{fg,bg,attr}Nicholas Marriott
options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha.
2014-01-22Support paste key in copy mode input (for search etc). Also clamp lengthNicholas Marriott
to screen width.
2014-01-22Only exit copy mode at the bottom if no selection in progress, fromNicholas Marriott
Benoit Pierre.
2013-11-20missing unsigned char casts areound tolower()Theo de Raadt
ok nicm
2013-11-09Support case insensitive searching in the same manner as emacs - allNicholas Marriott
lowercase means case insensitive, any uppercase means case sensitive. From J Raynor.
2013-11-08Correctly redraw the top two lines in copy mode when they are selected -Nicholas Marriott
the selection was being updated before the redraw so the markings were lost. Based on a fix from J Raynor.
2013-10-23Key to swap to other end of selection (bound to o with vi keys), from JNicholas Marriott
Raynor.
2013-07-12Make next-word-end work properly with vi(1) keys, reported by patrickNicholas Marriott
keshishian.
2013-07-05Whitespace nits, from Ben Boeckel.Nicholas Marriott
2013-07-05Act like vi(1) when moving words, from Ben Boeckel.Nicholas Marriott
2013-03-25Create a new context when copying instead of using the inputNicholas Marriott
context. The input context may not exist yet. Fixes crash when copying from config file errors.
2013-03-25Extend jobs to support writing and use that for copy-pipe instead ofNicholas Marriott
popen, from Chris Johnsen.
2013-03-22Add copy-pipe mode command to copy selection and also pipe to a command.Nicholas Marriott
2013-03-22No more lint means no more ARGSUSED.Nicholas Marriott
2013-02-05Automatically reflow wrapped lines when a pane is resized, requested byNicholas Marriott
many over the years and finally implemented by Richard Woodbury.
2013-01-18Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott
UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
2012-11-27When scrolling in copy mode with the mouse, scroll screen rather thanNicholas Marriott
moving cursor. This change from Ailin Nemui, alternative to a change from Stephen Hicks.
2012-10-26Make mouse event structure clearer by defining events (up, click, drag)Nicholas Marriott
and simplifying how buttons and wheels are represented, from Ailin Nemui. Should be no functional changes.
2012-09-25Fix search forward so it can match strings on the last line, SF bugNicholas Marriott
3571114 from "LiJunLe".
2012-08-11Instead of numbering choose mode items 0-9a-z and then nothing, numberNicholas Marriott
them all and if there are more than 10 use a prompt when 0-9 is pressed. From Thomas Adam.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-04-01Minor style nits - return ().Nicholas Marriott
2012-04-01Only exit mouse mode on scroll wheel when actually reaching the end ofNicholas Marriott
the history, from James Nylen.
2012-03-17Add a wrap-search option to turn off wrapping of searches in copyNicholas Marriott
mode. From Jacobo de Vera.
2012-03-11Always remember last cursor position when moving up or down, not justNicholas Marriott
for if crossing zero length lines. From Itay Perl.
2011-12-04Support "jump to" like vi in copy mode using t and T keys. Also add xNicholas Marriott
and X for delete in edit mode. From Ben Boeckel, thanks.
2011-11-15Move word-separators to be a session rather than window option, from BenNicholas Marriott
Boeckel.
2011-10-23When copying, make repeat count indicate buffer to replace if used.Nicholas Marriott
2011-06-27PANE_FREEZE doesn't do anything anymore, so remove it.Nicholas Marriott
2011-05-18Support setting the xterm clipboard when copying from copy mode usingNicholas Marriott
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.
2011-05-18Add three new copy-mode commands - select-line, copy-line,Nicholas Marriott
copy-end-of-line. From Dave Disser and Randy Stauner a while back.
2011-05-18Use button mouse mode not any for copy mode, fixes issues withNicholas Marriott
putty. From Ailin Nemui.
2011-04-24Tweak copy behaviour slightly in vi mode to be closer to real vi. FromNicholas Marriott
Tiago Resende.
2011-04-19When mode-mouse is on (it is off by default), automatically enter copyNicholas Marriott
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.
2011-03-28Style: uint -> u_int and a missing else.Nicholas Marriott
2010-12-30Change from a per-session stack of buffers to one global stack which isNicholas Marriott
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.
2010-12-29Support all four of the xterm mouse modes. Based on a diff from hsim atNicholas Marriott
gmx.li.
2010-12-11Fix rectangle copy to behave like emacs - the cursor is not part of theNicholas Marriott
selection on the right edge but on the left it is.
2010-09-11When resizing the copy mode screen, don't allow it to end up with theNicholas Marriott
viewable position beyond the size of the history.
2010-09-08Do not crash if the screen size is too small for the indicator in copy mode.Nicholas Marriott
2010-07-22Fix a crash: if remain-on-exit is set and the pane has exited, theNicholas Marriott
buffers may not be valid, so do not try to disable/enable them when switching to copy mode.
2010-06-29replace some magic mouse constants with defines for clarity. ok nicmTed Unangst
2010-06-06Use a macro-based mask for obtaining a key or modifier-set from theNicholas Marriott
combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan.
2010-06-05Make start-of-line work the same as end-of-line on wrapped lines (jumpNicholas Marriott
to real start if at edge of screen). By Micah Cowan.
2010-05-31When the mode-mouse option is on, support dragging to make a selectionNicholas Marriott
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-23Pass in the session, rather than the client, to window modes' key()Nicholas Marriott
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-04-28Fix crash when resizing in copy mode, when cursor can end up outside screen.Nicholas Marriott
Reported by Romain Francois, fixed by Micah Cowan.
2010-04-06Merge copy mode and output mode, dropping the latter. Idea and code fromNicholas Marriott
Micah Cowan.
2010-03-22paste-buffer should be per pane, from C. Coutinho.Nicholas Marriott