From 30bbf529ad3073fd449c7f9331a889b114fad1e1 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Sat, 28 Mar 2020 15:10:55 +0100 Subject: Add OSC 8 hyperlink support This commit adds support for the OSC 8 hyperlink escape sequence [1]. As this is not a mature feature and there seem to be outstanding security concerns [2], the setting that controls whether or not OSC 8 is interpreted is disabled by default. Just like gnome-terminal, weltschmerz will display a tooltip with the canonicalized URI when hovering over a hyperlink. [1] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda [2] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#security --- terminal.ui | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'terminal.ui') diff --git a/terminal.ui b/terminal.ui index c82a04d..4ba9555 100644 --- a/terminal.ui +++ b/terminal.ui @@ -3,6 +3,28 @@ + + True + False + edit-copy + + + True + False + + + _Copy hyperlink + True + False + Copy the hyperlink's URI to the clipboard + True + copy_hyperlink_image + False + True + + + + True False @@ -21,7 +43,7 @@ copy_url_image False True - + @@ -58,6 +80,7 @@ + -- cgit v1.2.3-2-gb3c3