Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add three new copy-mode commands - select-line, copy-line, | 2011-05-18 | 1 | -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 with | 2011-05-18 | 1 | -4/+4 | ||
| | | | | putty. From Ailin Nemui. | |||||
* | Tweak copy behaviour slightly in vi mode to be closer to real vi. From | 2011-04-24 | 1 | -8/+22 | ||
| | | | | Tiago Resende. | |||||
* | When mode-mouse is on (it is off by default), automatically enter copy | 2011-04-19 | 1 | -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. | 2011-03-28 | 1 | -6/+6 | ||
| | ||||||
* | Change from a per-session stack of buffers to one global stack which is | 2010-12-30 | 1 | -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 at | 2010-12-29 | 1 | -6/+8 | ||
| | | | | gmx.li. | |||||
* | Fix rectangle copy to behave like emacs - the cursor is not part of the | 2010-12-11 | 1 | -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 the | 2010-09-11 | 1 | -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. | 2010-09-08 | 1 | -1/+3 | ||
| | ||||||
* | Fix a crash: if remain-on-exit is set and the pane has exited, the | 2010-07-22 | 1 | -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 nicm | 2010-06-29 | 1 | -15/+6 | ||
| | ||||||
* | Use a macro-based mask for obtaining a key or modifier-set from the | 2010-06-06 | 1 | -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 (jump | 2010-06-05 | 1 | -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 selection | 2010-05-31 | 1 | -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() | 2010-05-23 | 1 | -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. | 2010-04-28 | 1 | -1/+3 | ||
| | | | | Reported by Romain Francois, fixed by Micah Cowan. | |||||
* | Merge copy mode and output mode, dropping the latter. Idea and code from | 2010-04-06 | 1 | -71/+188 | ||
| | | | | Micah Cowan. | |||||
* | paste-buffer should be per pane, from C. Coutinho. | 2010-03-22 | 1 | -1/+1 | ||
| | ||||||
* | Add vi-style "jump" commands for copy mode, from Micah Cowan. | 2010-03-22 | 1 | -2/+119 | ||
| | ||||||
* | Fix a use-after-free when cancelling copy mode, or trying to repeat cancel. | 2010-03-14 | 1 | -4/+4 | ||
| | | | | ok kettenis | |||||
* | Permit keys in copy mode to be prefixed by a repeat count, entered with | 2010-03-02 | 1 | -46/+138 | ||
| | | | | | | [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 moves | 2010-03-01 | 1 | -4/+21 | ||
| | | | | | | | | 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, from | 2010-02-22 | 1 | -38/+56 | ||
| | | | | Micah Cowan. | |||||
* | Another copy mode fix from Micah Cowan: in rectangle copy mode, the cursor | 2010-02-22 | 1 | -13/+42 | ||
| | | | | | 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, | 2010-02-19 | 1 | -1/+7 | ||
| | | | | 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 the | 2010-02-17 | 1 | -6/+5 | ||
| | | | | line, from Micah Cowan. | |||||
* | Don't strip add newline if only copying part of wrapped line. Problem spotted | 2010-02-17 | 1 | -2/+2 | ||
| | | | | by and fix from Micah Cowan. | |||||
* | Add "N" key to search the opposite way from the last search (reverse of "n"), | 2010-02-11 | 1 | -4/+13 | ||
| | | | | from Micah Cowan. | |||||
* | Rectangle copy support, from Robin Lee Powell. | 2010-02-06 | 1 | -19/+95 | ||
| | ||||||
* | vi-style B, W and E keys in copy mode to navigate between words treating only | 2010-02-04 | 1 | -24/+29 | ||
| | | | | | | | 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 with | 2010-01-27 | 1 | -1/+41 | ||
| | | | | the existing emacs behaviour. From Micah Cowan. | |||||
* | Hugely simplify window_copy_cursor_next_word, which was way overcomplicated. | 2010-01-25 | 1 | -46/+22 | ||
| | ||||||
* | Update the selection properly after goto line or searching. | 2010-01-25 | 1 | -1/+3 | ||
| | ||||||
* | Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me. | 2010-01-25 | 1 | -1/+15 | ||
| | ||||||
* | Redraw properly when scrolling backward and the cursor is on the last | 2010-01-24 | 1 | -5/+14 | ||
| | | | | line. Based on a fix from Micah Cowan. | |||||
* | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last | 2009-12-03 | 1 | -16/+16 | ||
| | | | | | 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 */ to | 2009-11-26 | 1 | -1/+2 | ||
| | | | | the rest to reduce lint output. | |||||
* | Missed an unused variable :-/. | 2009-11-18 | 1 | -2/+1 | ||
| | ||||||
* | Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid | 2009-11-18 | 1 | -9/+8 | ||
| | | | | | | | 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. | 2009-10-20 | 1 | -4/+7 | ||
| | ||||||
* | Add mode keys to move the cursor to the top, middle and bottom of the screen. | 2009-10-13 | 1 | -1/+19 | ||
| | | | | H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs). | |||||
* | Clean up by introducing a wrapper struct for mouse clicks rather than passing | 2009-10-11 | 1 | -8/+8 | ||
| | | | | | | | three u_chars around. As a side-effect this fixes incorrectly rejecting high cursor positions (because it was comparing them as signed char), reported by Tom Doherty. | |||||
* | Make C-Up and C-Down in copy mode scroll the screen up and down one line | 2009-10-06 | 1 | -15/+25 | ||
| | | | | | without moving the cursor, like Up and Down in scroll mode (which will shortly disappear). | |||||
* | Permit options such as status-bg to be configured using the entire 256 colour | 2009-09-10 | 1 | -7/+9 | ||
| | | | | palette by setting "colour0" to "colour255". | |||||
* | Give each paste buffer a size member instead of requiring them to be | 2009-09-07 | 1 | -5/+8 | ||
| | | | | zero-terminated. | |||||
* | When moving up or down in copy mode, save the cursor position and size of the | 2009-08-21 | 1 | -5/+19 | ||
| | | | | | | last line with content (width != 0) and use it to determine if the cursor should be at the end of the line. Fixes problem of the cursor always jumping to the end of the line when scrolling past a blank line. | |||||
* | Don't read beyond the edge of the screen when searching (dies with debug | 2009-08-19 | 1 | -1/+3 | ||
| | | | | enabled). | |||||
* | Nuke unnecessary assignment. | 2009-08-18 | 1 | -2/+1 | ||
| | ||||||
* | Add a "delete line" key when editing in the status line or the search up/down | 2009-08-18 | 1 | -1/+4 | ||
| | | | | prompt. C-u with emacs keys, d with vi. |