render: OSC 8 hyperlinks with hover/click and a URL hint mode

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I7b39adae426d3fc5b7dfe1437eb10e976a6a6964
This commit is contained in:
raf 2026-06-25 13:48:20 +03:00
commit 2161d7250f
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
6 changed files with 457 additions and 11 deletions

View file

@ -24,6 +24,7 @@ pub enum Action {
JumpPromptUp,
JumpPromptDown,
PipeCommandOutput,
UrlMode,
}
impl Action {
@ -45,6 +46,7 @@ impl Action {
"jump-prompt-up" => Self::JumpPromptUp,
"jump-prompt-down" => Self::JumpPromptDown,
"pipe-command-output" => Self::PipeCommandOutput,
"url-mode" => Self::UrlMode,
_ => return None,
})
}
@ -182,6 +184,7 @@ const DEFAULT_BINDINGS: &[(&str, &str)] = &[
("Ctrl+Shift+N", "new-window"),
("Ctrl+Shift+Up", "jump-prompt-up"),
("Ctrl+Shift+Down", "jump-prompt-down"),
("Ctrl+Shift+O", "url-mode"),
];
/// Map a key token to a keysym: a single character, or a named special key.