aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-04 19:55:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:32 +0000
commit93181649b32249f572bc4c6892c99155186fc714 (patch)
treeac301af02c3aa4482c7b4ffe4c5c4c4f318ba832 /terminal.h
parentconfig: show-urls-launch: change default key binding to ctrl+shift+u (diff)
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.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 24183c7b..b58cd137 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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 {