forked from NotAShelf/beer
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:
parent
72ec651ff1
commit
2161d7250f
6 changed files with 457 additions and 11 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue