mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: add support for different mime-types
Add support for `text/plain`, `text/plain;charset=utf-8` and `text/uri-list` to regular copy operations (both from clipboard and primary selection) and drag-and-drop operations.
This commit is contained in:
parent
cad0ae957d
commit
be22fefdc7
3 changed files with 329 additions and 90 deletions
|
|
@ -67,12 +67,12 @@ bool text_to_primary(
|
|||
*/
|
||||
void text_from_clipboard(
|
||||
struct seat *seat, struct terminal *term,
|
||||
void (*cb)(const char *data, size_t size, void *user),
|
||||
void (*cb)(char *data, size_t size, void *user),
|
||||
void (*done)(void *user), void *user);
|
||||
|
||||
void text_from_primary(
|
||||
struct seat *seat, struct terminal *term,
|
||||
void (*cb)(const char *data, size_t size, void *user),
|
||||
void (*cb)(char *data, size_t size, void *user),
|
||||
void (*dont)(void *user), void *user);
|
||||
|
||||
void selection_start_scroll_timer(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue