| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | selection: optimize \r\n -> \n when receiving clipboard data | Daniel Eklöf | 2019-12-15 | -6/+14 |
| | | | | | | | Instead of first memmoving, possibly lots of data lots of times, the received buffer, and _then_ calling the callback, simply call the callback multiple times, and just skip the \r character(s). | |||
| * | selection: break out isword() to a new file | Daniel Eklöf | 2019-12-03 | -21/+1 |
| | | ||||
| * | term: add term_mouse_grabbed() | Daniel Eklöf | 2019-11-30 | -12/+1 |
| | | | | | | | When this returns true, it means we have keyboard focus and are grabbing the mouse (for e.g. selections), regardless of whether the client has enabled mouse tracking or not. | |||
| * | selection: forced selection requires keyboard focus | Daniel Eklöf | 2019-11-30 | -1/+12 |
| | | | | | | | | | | | Up the requirements for enabling "forced" selection (that is, allowing selections even though mouse tracking has been disabled). * Require keyboard focus (if we don't have it, then the shift-key isn't is for us) * Don't just require shift being pressed, but that all other modifiers are *not* pressed. | |||
| * | async: first synchronous write may succeed partially | Daniel Eklöf | 2019-11-28 | -4/+6 |
| | | | | | | | | | | When trying to write (to e.g. the slave, or to a clipboard receiver), we first try to send the data synchronously, and only if that fails do we switch to asynchronous mode. However, the first synchronous may (in fact, is likely to) succeed partially. | |||
| * | selection: text_to_clipboard: assert the clipboard serial is not 0 | Daniel Eklöf | 2019-11-22 | -0/+1 |
| | | ||||
| * | selection: selection_to_clipboard: exit early on no-selection | Daniel Eklöf | 2019-11-22 | -0/+3 |
| | | | | | | When there's no selection, exit early to avoid trying to get grid data from row -1. | |||
| * | selection: we already have a direct pointer to the clipboard struct | Daniel Eklöf | 2019-11-22 | -1/+1 |
| | | ||||
| * | selection: buffer may be empty if only empty cells where selected | Daniel Eklöf | 2019-11-16 | -0/+6 |
| | | ||||
| * | scan-build: fix a couple of minor warnings from a scan-build run | Daniel Eklöf | 2019-11-05 | -0/+1 |
| | | ||||
| * | selection: make text_from_{clipboard,primary} async | Daniel Eklöf | 2019-11-05 | -61/+84 |
| | | ||||
| * | selection: initialize 'ctx' before jumping into its scope | Daniel Eklöf | 2019-11-05 | -2/+2 |
| | | ||||
| * | selection: text_from_{clipboard,primary}: add 'done' callback | Daniel Eklöf | 2019-11-05 | -18/+33 |
| | | | | | | | | | This callback is *always* called, including when there has been an error. This is in preparation for making text_from_{clipboard,primary} asynchronous. | |||
| * | selection: async send: handle POLLHUP | Daniel Eklöf | 2019-11-05 | -1/+4 |
| | | ||||
| * | selection: free strdup:ed clipboard data on fdm failure | Daniel Eklöf | 2019-11-05 | -0/+4 |
| | | ||||
| * | selection: remove debug assert | Daniel Eklöf | 2019-11-05 | -1/+0 |
| | | ||||
| * | selection: typedef not needed here (copy-paste from fdm.h) | Daniel Eklöf | 2019-11-05 | -2/+0 |
| | | ||||
| * | selection: we don't set user data on primary/clipboard data sources | Daniel Eklöf | 2019-11-04 | -4/+4 |
| | | ||||
| * | selection: try to write selection data synchronously first | Daniel Eklöf | 2019-11-04 | -35/+70 |
| | | | | | Only if we fail to write everything do we switch to asynchronous mode. | |||
| * | selection: send primary/clipboard data asynchronously | Daniel Eklöf | 2019-11-04 | -36/+82 |
| | | | | | TODO: try writing synchronously first | |||
| * | Rename: vt_to_slave() -> term_to_slave() | Daniel Eklöf | 2019-11-02 | -5/+5 |
| | | ||||
| * | term: wayland struct is now not a part of the terminal struct | Daniel Eklöf | 2019-10-27 | -21/+21 |
| | | | | | | | We do however need access to it, so provide a pointer. The difference is that now we can have a *single* wayland instance, but multiple terminal instances. | |||
| * | wayland: change all wayland callbacks to take a wayland pointer | Daniel Eklöf | 2019-10-27 | -4/+4 |
| | | | | | | Instead of passing the terminal to the wayland callbacks, pass a 'struct wayland' pointer. | |||
| * | kbd: move into wayland | Daniel Eklöf | 2019-10-27 | -1/+1 |
| | | ||||
| * | wayland: move clipboard/primary structs into the wayland struct | Daniel Eklöf | 2019-10-27 | -19/+16 |
| | | | | | These are application global and very wayland specific | |||
| * | selection: replace \r\n with \n in pasted text | Daniel Eklöf | 2019-10-16 | -0/+16 |
| | | ||||
| * | selection: primary: don't require compositor to implement it | Daniel Eklöf | 2019-09-25 | -0/+12 |
| | | ||||
| * | selection: allow selections while searching scrollback | Daniel Eklöf | 2019-08-27 | -1/+4 |
| | | ||||
| * | selection: regression: last cell wasn't included in copied text | Daniel Eklöf | 2019-08-10 | -1/+1 |
| | | ||||
| * | osc: implement copy/paste to/from primary | Daniel Eklöf | 2019-08-09 | -66/+96 |
| | | ||||
| * | input: don't paste from primary if client is mouse tracking | Daniel Eklöf | 2019-08-09 | -1/+1 |
| | | ||||
| * | selection: allow selection when mouse tracking is enabled *if* shift is pressed | Daniel Eklöf | 2019-08-08 | -2/+1 |
| | | ||||
| * | selection/input: triple click selects an entire row | Daniel Eklöf | 2019-08-06 | -0/+8 |
| | | ||||
| * | term: cancel selection when scrolling wraps | Daniel Eklöf | 2019-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 finalize | Daniel Eklöf | 2019-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 separator | Daniel Eklöf | 2019-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 on | Daniel Eklöf | 2019-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 empty | Daniel Eklöf | 2019-08-04 | -7/+14 |
| | | ||||
| * | cell: pack more efficiently and store glyph as a wchar | Daniel Eklöf | 2019-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 characters | Daniel Eklöf | 2019-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öf | 2019-07-24 | -4/+2 |
| | | ||||
| * | selection: add text_from_clipboard() | Daniel Eklöf | 2019-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öf | 2019-07-19 | -6/+15 |
| | | | | | This function takes a string and makes it available to the clipboard. | |||
| * | selection: implement double-click-to-select-word | Daniel Eklöf | 2019-07-17 | -0/+69 |
| | | ||||
| * | selection: bug: apply grid's view offset when starting a selection | Daniel Eklöf | 2019-07-17 | -1/+1 |
| | | ||||
| * | Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere | Daniel Eklöf | 2019-07-15 | -6/+7 |
| | | ||||
| * | selection: disable source listeners, since we don't currently use them | Daniel Eklöf | 2019-07-11 | -0/+8 |
| | | ||||
| * | selection: implement copy *to* primary | Daniel Eklöf | 2019-07-11 | -6/+89 |
| | | ||||
| * | selection: add support for pasting *from* primary | Daniel Eklöf | 2019-07-11 | -0/+86 |
| | | ||||
| * | selection: add selection_from_primary() API (stub for now) | Daniel Eklöf | 2019-07-11 | -0/+6 |
| | | ||||
| * | selection: cleanup | Daniel Eklöf | 2019-07-11 | -4/+16 |
| | | ||||
| * | selection: calculate required length for clipboard text | Daniel Eklöf | 2019-07-11 | -3/+12 |
| | | ||||
| * | selection: read until EOF when reading from clipboard | Daniel Eklöf | 2019-07-11 | -6/+17 |
| | | ||||
| * | selection: it's an error to call offset_accept() on non-drag-and-drop | Daniel Eklöf | 2019-07-11 | -3/+0 |
| | | ||||
| * | selection: handle partial writes and EINTR when writing to clipboard | Daniel Eklöf | 2019-07-11 | -2/+16 |
| | | ||||
| * | selection: add support for pasting from clipboard | Daniel Eklöf | 2019-07-11 | -1/+41 |
| | | ||||
| * | selection: initial copy-to-clipboard functionality | Daniel Eklöf | 2019-07-11 | -0/+232 |
| | | ||||
| * | selection: selection_finalize() ignores invalid selections | Daniel Eklöf | 2019-07-11 | -0/+3 |
| | | ||||
| * | selection: spell 'finalize' correctly | Daniel Eklöf | 2019-07-11 | -1/+1 |
| | | ||||
| * | selection: invalidate *all* affected lines when updating selection | Daniel Eklöf | 2019-07-11 | -4/+14 |
| | | ||||
| * | selection: disable debug logging | Daniel Eklöf | 2019-07-11 | -1/+1 |
| | | ||||
| * | selection: disable selection when client has enabled mouse tracking | Daniel Eklöf | 2019-07-11 | -0/+18 |
| | | ||||
| * | selection: add a selection API | Daniel Eklöf | 2019-07-11 | -0/+70 |
