aboutsummaryrefslogtreecommitdiff
path: root/selection.c (follow)
Commit message (Collapse)AuthorAgeLines
* selection: primary: don't require compositor to implement itDaniel Eklöf2019-09-25-0/+12
|
* selection: allow selections while searching scrollbackDaniel Eklöf2019-08-27-1/+4
|
* selection: regression: last cell wasn't included in copied textDaniel Eklöf2019-08-10-1/+1
|
* osc: implement copy/paste to/from primaryDaniel Eklöf2019-08-09-66/+96
|
* input: don't paste from primary if client is mouse trackingDaniel Eklöf2019-08-09-1/+1
|
* selection: allow selection when mouse tracking is enabled *if* shift is pressedDaniel Eklöf2019-08-08-2/+1
|
* selection/input: triple click selects an entire rowDaniel Eklöf2019-08-06-0/+8
|
* term: cancel selection when scrolling wrapsDaniel Eklöf2019-08-05-0/+14
| | | | | | | | | | If we scroll enough, we'll eventually end up wrapping around the entire scrollback buffer. At this point, a selection is no longer valid, so cancel it. Note: this was very obvious when scrolling in the alt screen, since its scrollback buffer is what you see on the screen (i.e. it has no scrollback).
* selection: ensure start < end in finalizeDaniel Eklöf2019-08-05-6/+11
| | | | | When the selection is finalized, swap start/end if necessary, to make sure start <= end.
* selection: mark-word using spaces only as word separatorDaniel Eklöf2019-08-05-6/+10
| | | | | When the user double-clicks with ctrl pressed, we now select the word under the cursor using spaces only as word separator.
* selection: only disable selection when mouse drag/motion is onDaniel Eklöf2019-08-04-1/+2
| | | | | This allows us to select text in e.g. man/less while still being able to use LESS=--MOUSE (i.e. enable scrolling with mouse).
* selection: insert newlines only when last column is emptyDaniel Eklöf2019-08-04-7/+14
|
* cell: pack more efficiently and store glyph as a wcharDaniel Eklöf2019-08-02-23/+26
| | | | | | | | | | | The 'attributes' struct is now 8 bytes and naturally packed (used to be 9 bytes, artificially packed). 'cell' struct is now 12 bytes, naturally packed (used to be 13 bytes, artificially packed). Furthermore, the glyph is stored as a wchar instead of a char*. This makes it easier (faster) to do glyph lookup when rendering.
* selection: add a couple of word-breaking charactersDaniel Eklöf2019-07-30-4/+22
| | | | | | When "auto-selecting" a word, we used to only break on space characters. Now we break on a number of other characters as well.
* render: add render_refresh()Daniel Eklöf2019-07-24-4/+2
|
* selection: add text_from_clipboard()Daniel Eklöf2019-07-19-7/+26
| | | | | This function reads data from the clipboard, and calls a user-provided callback for each chunk of clipboard data.
* selection: add text_to_clipboard()Daniel Eklöf2019-07-19-6/+15
| | | | This function takes a string and makes it available to the clipboard.
* selection: implement double-click-to-select-wordDaniel Eklöf2019-07-17-0/+69
|
* selection: bug: apply grid's view offset when starting a selectionDaniel Eklöf2019-07-17-1/+1
|
* Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhereDaniel Eklöf2019-07-15-6/+7
|
* selection: disable source listeners, since we don't currently use themDaniel Eklöf2019-07-11-0/+8
|
* selection: implement copy *to* primaryDaniel Eklöf2019-07-11-6/+89
|
* selection: add support for pasting *from* primaryDaniel Eklöf2019-07-11-0/+86
|
* selection: add selection_from_primary() API (stub for now)Daniel Eklöf2019-07-11-0/+6
|
* selection: cleanupDaniel Eklöf2019-07-11-4/+16
|
* selection: calculate required length for clipboard textDaniel Eklöf2019-07-11-3/+12
|
* selection: read until EOF when reading from clipboardDaniel Eklöf2019-07-11-6/+17
|
* selection: it's an error to call offset_accept() on non-drag-and-dropDaniel Eklöf2019-07-11-3/+0
|
* selection: handle partial writes and EINTR when writing to clipboardDaniel Eklöf2019-07-11-2/+16
|
* selection: add support for pasting from clipboardDaniel Eklöf2019-07-11-1/+41
|
* selection: initial copy-to-clipboard functionalityDaniel Eklöf2019-07-11-0/+232
|
* selection: selection_finalize() ignores invalid selectionsDaniel Eklöf2019-07-11-0/+3
|
* selection: spell 'finalize' correctlyDaniel Eklöf2019-07-11-1/+1
|
* selection: invalidate *all* affected lines when updating selectionDaniel Eklöf2019-07-11-4/+14
|
* selection: disable debug loggingDaniel Eklöf2019-07-11-1/+1
|
* selection: disable selection when client has enabled mouse trackingDaniel Eklöf2019-07-11-0/+18
|
* selection: add a selection APIDaniel Eklöf2019-07-11-0/+70