aboutsummaryrefslogtreecommitdiff
path: root/window-copy.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 188:Tiago Cunha2009-07-28
| | | | | Get rid of empty mode_key_free function.
* Sync OpenBSD patchset 185:Tiago Cunha2009-07-28
| | | | | | Change previous-word behavior to move to the beginning of the word (matches emacs and vi). From Kalle Olavi Niemitalo.
* Sync OpenBSD patchset 171:Tiago Cunha2009-07-23
| | | | | Redraw after starting selection to correctly remove any existing selection.
* Add a "back to indentation" key in copy mode to move the cursor to the firstNicholas Marriott2009-07-14
| | | | | | non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
* Merge three copies of identical code to move the cursor x position into aNicholas Marriott2009-07-14
| | | | | single function, from Kalle Olavi Niemitalo.
* Copy was using the real line length which after resize can be larger than theNicholas Marriott2009-07-12
| | | | | | | | screen width. When built with -DDEBUG, this made the grid bounds checking code kill the server. Restrict copying to the actual width. From Kalle Olavi Niemitalo, thanks.
* Stop in the right place so all the lines selected are copied. Reported by KalleNicholas Marriott2009-07-12
| | | | | Olavi Niemitalo, thanks.
* Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal errorNicholas Marriott2009-07-02
| | | | | | when trying to paste them, found by me, and miscalculation of the start/end causing random fatal errors when copying in copy-mode, reported by sthen.
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* Er, i should be j and c should be u.Nicholas Marriott2009-03-31
|
* UTF8_SIZE.Nicholas Marriott2009-03-31
|
* Copy columns correctly.Nicholas Marriott2009-03-30
|
* Only need to print this once...Nicholas Marriott2009-03-30
|
* - Unbreak selection colouring.Nicholas Marriott2009-03-30
| | | | | - Get UTF-8 check the right way round...
* Fix UTF-8 in c&p mode.Nicholas Marriott2009-03-30
|
* 8 -> UTF8_SIZE.Nicholas Marriott2009-03-29
|
* Better UTF-8 support, including combined characters. Unicode data is now storedNicholas Marriott2009-03-28
| | | | | | | | | | | as UTF-8 in a separate array, the code does a lookup into this every time it gets to a UTF-8 cell. Zero width characters are just appended onto the UTF-8 data for the previous cell. This also means that almost no bytes extra are wasted non-Unicode data (yay). Still some oddities, such as copy mode skips over wide characters in a strange way, and the code could do with some tidying.
* Step 2 of the Grand Plan To Make UTF-8 Better.Nicholas Marriott2009-03-28
| | | | | | | | | | | | | | | | | | | Split grid into two arrays, one containing grid attributes/flags/colours (keeps the name grid_cell for now) and a separate with the character data (called text). The text is stored as a u_short but is treated as a uint64_t elsewhere; eventually the grid will have two arrays. I'm not happy with the naming so that might change. Still need to decide where to go from here. I'm not sure whether to combine the peek/set functions together, and also whether to continue to treat the text as a uint64_t (and convert to/from Unicode) or make it a char array (of size one when UTF-8 disabled, eight when enabled) and keep everything as UTF-8. Also since UTF-8 will eventually become an attribute of the grid itself it might be nice to move all the padding crap into grid.c.
* Redo mode keys slightly more cleanly and apply them to command prompt ↵Nicholas Marriott2009-02-13
| | | | editing. vi or emacs mode is controlled by the session option status-keys.
* Mouse in copy mode.Nicholas Marriott2009-01-28
|
* * Better support for at least the most common variant of mouse input: parse ↵Nicholas Marriott2009-01-28
| | | | | | | it and adjust for different panes. Also support mouse in window/session choice mode. * Bring back the fancy window titles with session/window names: it is easy to work around problems with elinks (see FAQ).
* -u to start with screen scrolled up.Nicholas Marriott2009-01-27
|
* Allow status, mode and message attributes to be changed by three new ↵Nicholas Marriott2009-01-27
| | | | | | | options: status-attr, mode-attr, message-attr. A comma-separataed list is accepted containing: bright, dim, underscore, blink, reverse, hidden, italics, for example: set -g status-attr bright,blink From Josh Elsasser, thanks!
* Make the caller responsible for allocating memory for the paste buffer dataTiago Cunha2009-01-25
| | | | | | (needed by the load-buffer command when dealing with big files since it'll prevent tmux from dying due to memory exhaustion). From nicm.
* Missed a reverse.Nicholas Marriott2009-01-23
|
* Use reverse so status line etc works in terminals w/o colour.Nicholas Marriott2009-01-23
|
* Allow a selection in vi keys mode...Nicholas Marriott2009-01-21
|
* These should be u_int.Nicholas Marriott2009-01-18
|
* This is fixed.Nicholas Marriott2009-01-18
|
* Use -O0 to prevent copy issues.Nicholas Marriott2009-01-12
|
* Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott2009-01-11
| | | | still a couple of bugs (notably heap corruption somewhere causing segfault on exit).
* Clock mode.Nicholas Marriott2009-01-10
|
* Trim spaces.Nicholas Marriott2009-01-10
|
* Should redraw 1 too.Nicholas Marriott2008-12-11
|
* Make window options work the same was as session options, add ↵Nicholas Marriott2008-12-08
| | | | mode-fg/mode-bg options, force -g for global on set/show/setw/showw/
* y not x :-/Nicholas Marriott2008-11-12
|
* Trim.Nicholas Marriott2008-09-26
|
* Internal screen data rewrite for better 256 colour/UTF-8 support.Nicholas Marriott2008-09-25
|
* Rename some functions.Nicholas Marriott2008-09-10
|
* Initial 256 colour support, lightly tested.Nicholas Marriott2008-09-08
|
* Lose ensure* stuff.Nicholas Marriott2008-08-07
|
* Support keypad mode, and get rid of SCREEN_DEF*. Meant to commit these ↵Nicholas Marriott2008-07-24
| | | | separately but forgot :-/.
* Split emacs/vi keys into seperate tables.Nicholas Marriott2008-07-02
|
* Make previous-word stop at BOL.Nicholas Marriott2008-06-27
|
* Handle escaped keys properly and use M-f/M-b in copy mode.Nicholas Marriott2008-06-25
|
* Next/previous word in copy-mode.Nicholas Marriott2008-06-24
|
* Convert 0x70 -> 0x88.Nicholas Marriott2008-06-22
|
* buffer-limit option.Nicholas Marriott2008-06-20
|
* Swap in new paste buffer code and add a couple more commands.Nicholas Marriott2008-06-20
|
* Editable prompt. Not used for anything yet. More to come.Nicholas Marriott2008-06-19
|