config: add show-urls-copy action

This works just like show-urls-launch, except that instead of opening
the URL (typically using xdg-open), it is placed in the clipboard when
activated.
This commit is contained in:
Daniel Eklöf 2021-02-04 20:55:08 +01:00
parent b17a392b8c
commit 93181649b3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
8 changed files with 52 additions and 20 deletions

View file

@ -223,12 +223,14 @@ enum term_surface {
typedef tll(struct ptmx_buffer) ptmx_buffer_list_t;
enum url_action { URL_ACTION_COPY, URL_ACTION_LAUNCH };
struct url {
wchar_t *url;
wchar_t *text;
wchar_t key[4];
struct coord start;
struct coord end;
enum url_action action;
};
struct terminal {