Keyboard-driven URL opening #3922
Replies: 3 comments 1 reply
-
I have same question, I use {
key = "u",
mods = ...,
action = wezterm.action.QuickSelectArgs({
label = "open url",
patterns = {
"\\((https?://\\S+)\\)",
"\\[(https?://\\S+)\\]",
"\\{(https?://\\S+)\\}",
"<(https?://\\S+)>",
"\\bhttps?://\\S+[)/a-zA-Z0-9-]+",
"\\b\\w+://(?:[\\w.-]+)\\.[a-z]{2,15}\\S*[^\\s.,;:]",
"\\b\\w+@[\\w-]+\\.[\\w.-]+\\b",
},
action = wezterm.action_callback(function(window, pane)
local url = window:get_selection_text_for_pane(pane)
wezterm.open_with(url)
end),
}),
}, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Docs from some other terminals, in case that's helpful as a reference:
This obviously isn't an exhaustive list, since there are Too Many Terminals 😛 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This seems to be a duplicate of the earlier #2394 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
foot has a pretty nice feature to deal with url:
Pressing ctrl+shift+o enters "URL mode", where all currently visible URLs are underlined, and is associated with a "jump-label". The jump-label indicates the key sequence (e.g. "AF") to use to activate the URL.
It looks like this:
It would be neat to have it in ghostty as well I think.
Beta Was this translation helpful? Give feedback.
All reactions