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

@ -11,7 +11,7 @@ static inline bool urls_mode_is_active(const struct terminal *term)
return tll_length(term->urls) > 0;
}
void urls_collect(struct terminal *term);
void urls_collect(struct terminal *term, enum url_action action);
void urls_reset(struct terminal *term);
void urls_input(struct seat *seat, struct terminal *term, uint32_t key,