summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window-copy.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Only redraw affected lines when selection changes with mouse. Fromnicm2014-12-151-3/+22
| | | | Michael Graczyk.
* Expand formats in copy-pipe command, suggested by Suraj N Kurapati.nicm2014-11-091-6/+16
|
* Wrap when copy mode is used for output, from Balazs Kezes.nicm2014-11-061-8/+7
|
* Add V for select line with vi(1) keys. From Juho Pohjala.nicm2014-11-061-46/+70
|
* Fix some spacing nits.nicm2014-10-221-2/+2
|
* Add xreallocarray and remove nmemb argument from xrealloc.nicm2014-10-081-6/+6
|
* Copy ACS characters as UTF-8, from Balazs Kezes.nicm2014-10-021-1/+9
|
* Various minor style and spacing nits.nicm2014-09-011-3/+3
|
* No need to repeat other-end more than once, from Juho Pohjala. Also addnicm2014-08-111-2/+2
| | | | it to the commands list while here.
* Fix two copy mode problems:nicm2014-08-111-1/+2
| | | | | | | | | 1. In vi mode the selection doesn't include the last character if you moved the cursor up or left. 2. In emacs mode the selection includes the last character if you moved the cursor to the left. From Balazs Kezes.
* Copy newline when at EOL in vi(1) mode, from Balazs Kezes.nicm2014-06-191-6/+8
|
* Simplify copy lines, from Keith Amling.nicm2014-05-141-12/+5
|
* Add a copy mode key binding to copy to a named buffer. From J Raynor.nicm2014-05-131-3/+15
|
* Add support for named buffers. If you don't name a buffer, things worknicm2014-05-131-40/+32
| | | | | | | | much as before - buffers are automatically named "buffer0000", "buffer0001" and so on and ordered as a stack. Buffers can be named explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b buffer0000 -n foo"). If buffers are named explicitly, they are not deleted when buffer-limit is reached. Diff from J Raynor.
* There is no longer a need for a paste_stack struct or for global_buffersnicm2014-04-241-8/+8
| | | | to be global. Move to paste.c.
* Some more long lines.nicm2014-04-171-3/+5
|
* Don't blindly increase offsets by the return value of snprintf, if therenicm2014-04-111-7/+9
| | | | | wasn't enough space this will go off the end. Instead clamp to the available space. Fixes crash reported by Julien Rebetez.
* Work out mouse scroll wheel effect when the mouse is first detected andnicm2014-04-031-11/+12
| | | | | | | store it in struct mouse_event, reduce the scroll size the 3 but allow shift to reduce it to 1 and meta and ctrl to multiply by 3 if the terminal supports them, also support wheel in choose mode. From Marcel Partap.
* Add setb -a to append and a copy mode append command, from J Raynor withnicm2014-03-311-1/+49
| | | | minor changes.
* Fix memory leaks with paste_replace, based on changes from J Raynor.nicm2014-02-171-3/+3
|
* Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm2014-01-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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.