aboutsummaryrefslogtreecommitdiff
path: root/window-copy.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2014-05-13
|\ | | | | | | | | | | Conflicts: format.c window.c
| * Add a copy mode key binding to copy to a named buffer. From J Raynor.nicm2014-05-13
| |
| * Add support for named buffers. If you don't name a buffer, things worknicm2014-05-13
| | | | | | | | | | | | | | | | 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.
* | Merge branch 'obsd-master'Thomas Adam2014-04-24
|\|
| * There is no longer a need for a paste_stack struct or for global_buffersnicm2014-04-24
| | | | | | | | to be global. Move to paste.c.
* | Merge branch 'obsd-master'Thomas Adam2014-04-23
|\| | | | | | | | | | | | | Conflicts: Makefile tmux.1 window.c
| * Some more long lines.nicm2014-04-17
| |
| * Don't blindly increase offsets by the return value of snprintf, if therenicm2014-04-11
| | | | | | | | | | wasn't enough space this will go off the end. Instead clamp to the available space. Fixes crash reported by Julien Rebetez.
* | Merge branch 'obsd-master'Thomas Adam2014-04-05
|\| | | | | | | | | | | Conflicts: Makefile tty-keys.c
| * Work out mouse scroll wheel effect when the mouse is first detected andnicm2014-04-03
| | | | | | | | | | | | | | 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-31
| | | | | | | | minor changes.
* | Add setb -a to append and a copy mode append command, from J Raynor with minorNicholas Marriott2014-03-06
| | | | | | | | changes.
* | Merge branch 'obsd-master'Thomas Adam2014-02-19
|\|
| * Fix memory leaks with paste_replace, based on changes from J Raynor.nicm2014-02-17
| |
* | Merge branch 'obsd-master'Thomas Adam2014-01-31
|\| | | | | | | | | | | | | Conflicts: Makefile cmd-server-info.c cmd-start-server.c
| * Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm2014-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-22
| | | | | | | | to screen width.
| * Only exit copy mode at the bottom if no selection in progress, fromnicm2014-01-22
| | | | | | | | Benoit Pierre.
| * missing unsigned char casts areound tolower()deraadt2013-11-20
| | | | | | | | ok nicm
* | Merge branch 'obsd-master'Thomas Adam2013-11-14
|\|
| * Support case insensitive searching in the same manner as emacs - allnicm2013-11-09
| | | | | | | | | | 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-08
| | | | | | | | | | 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-23
| | | | | | | | Raynor.
* | Merge branch 'obsd-master'Thomas Adam2013-07-13
|\|
| * Make next-word-end work properly with vi(1) keys, reported by patrickNicholas Marriott2013-07-12
| | | | | | | | keshishian.
* | Merge branch 'obsd-master'Thomas Adam2013-07-06
|\|
| * Whitespace nits, from Ben Boeckel.Nicholas Marriott2013-07-05
| |
| * Create a new context when copying instead of using the inputNicholas Marriott2013-03-25
| | | | | | | | | | context. The input context may not exist yet. Fixes crash when copying from config file errors.
| * Add copy-pipe mode command to copy selection and also pipe to a command.Nicholas Marriott2013-03-22
| |
| * No more lint means no more ARGSUSED.Nicholas Marriott2013-03-22
| |
* | Create a new context when copying instead of using the input context. The inputNicholas Marriott2013-03-21
| | | | | | | | context may not exist yet.
* | Extend jobs to support writing and use that for copy-pipe instead of popen,Nicholas Marriott2013-03-21
| | | | | | | | from Chris Johnsen.
* | Add copy-pipe mode command to copy selection and also pipe to a command.Nicholas Marriott2013-02-19
| |
* | No more lint means no more ARGSUSED.Nicholas Marriott2013-02-17
| |
* | Merge branch 'obsd-master'Thomas Adam2013-02-07
|\|
| * Automatically reflow wrapped lines when a pane is resized, requested byNicholas Marriott2013-02-05
| | | | | | | | many over the years and finally implemented by Richard Woodbury.
* | Merge branch 'obsd-master'Thomas Adam2013-01-30
|\| | | | | | | | | | | Conflicts: Makefile grid-utf8.c
| * Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott2013-01-18
| | | | | | | | | | UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
* | Merge branch 'obsd-master'Thomas Adam2012-11-27
|\| | | | | | | Sync from OpenBSD.
| * When scrolling in copy mode with the mouse, scroll screen rather thanNicholas Marriott2012-11-27
| | | | | | | | | | moving cursor. This change from Ailin Nemui, alternative to a change from Stephen Hicks.
* | Merge branch 'obsd-master'Thomas Adam2012-10-26
|\| | | | | | | Sync from OpenBSD.
| * Make mouse event structure clearer by defining events (up, click, drag)Nicholas Marriott2012-10-26
| | | | | | | | | | and simplifying how buttons and wheels are represented, from Ailin Nemui. Should be no functional changes.
* | Merge branch 'obsd-master'Thomas Adam2012-09-25
|\| | | | | | | Sync from OpenBSD.
| * Fix search forward so it can match strings on the last line, SF bugNicholas Marriott2012-09-25
| | | | | | | | 3571114 from "LiJunLe".
| * Instead of numbering choose mode items 0-9a-z and then nothing, numberNicholas Marriott2012-08-11
| | | | | | | | | | 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.Nicholas Marriott2012-07-10
| |
| * Minor style nits - return ().Nicholas Marriott2012-04-01
| |
| * 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.