aboutsummaryrefslogtreecommitdiff
path: root/selection.h (follow)
Commit message (Collapse)AuthorAgeLines
* selection: add selection_extend()Daniel Eklöf2020-04-04-0/+1
| | | | | | | | | | | | | | This function extends an existing selection in the following way: If the extension point is *before* the upper boundary of the current selection, extend the selection upwards. If the extension point is *after* the bottom boundary of the current selection, extend the selection downwards. If the extension point is *inside* the current selection, shrink the selection such that the new size is maximized. This means we move the *closest* start/end point from in the current selection.
* selection: track selection type; normal or block selectionDaniel Eklöf2020-01-03-1/+2
|
* selection: document the asynchronous behavior of text_from_{primary,clipboard}Daniel Eklöf2019-11-05-1/+17
|
* selection: text_from_{clipboard,primary}: add 'done' callbackDaniel Eklöf2019-11-05-3/+4
| | | | | | | | This callback is *always* called, including when there has been an error. This is in preparation for making text_from_{clipboard,primary} asynchronous.
* osc: implement copy/paste to/from primaryDaniel Eklöf2019-08-09-1/+9
|
* input: don't paste from primary if client is mouse trackingDaniel Eklöf2019-08-09-0/+1
|
* selection/input: triple click selects an entire rowDaniel Eklöf2019-08-06-0/+1
|
* term: cancel selection when scrolling wrapsDaniel Eklöf2019-08-05-0/+1
| | | | | | | | | | 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: mark-word using spaces only as word separatorDaniel Eklöf2019-08-05-1/+3
| | | | | When the user double-clicks with ctrl pressed, we now select the word under the cursor using spaces only as word separator.
* selection: add text_from_clipboard()Daniel Eklöf2019-07-19-0/+4
| | | | | 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-0/+2
| | | | This function takes a string and makes it available to the clipboard.
* selection: implement double-click-to-select-wordDaniel Eklöf2019-07-17-0/+1
|
* selection: implement copy *to* primaryDaniel Eklöf2019-07-11-1/+1
|
* selection: add support for pasting *from* primaryDaniel Eklöf2019-07-11-0/+1
|
* selection: add selection_from_primary() API (stub for now)Daniel Eklöf2019-07-11-0/+1
|
* selection: add support for pasting from clipboardDaniel Eklöf2019-07-11-0/+2
|
* selection: initial copy-to-clipboard functionalityDaniel Eklöf2019-07-11-0/+5
|
* selection: spell 'finalize' correctlyDaniel Eklöf2019-07-11-1/+1
|
* selection: add a selection APIDaniel Eklöf2019-07-11-0/+8