We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 867f214 commit d169536Copy full SHA for d169536
home/dot_config/wezterm/wezterm.lua
@@ -242,7 +242,18 @@ config.keys = {
242
action = wezterm.action.QuickSelectArgs {
243
label = 'open url',
244
patterns = {
245
- 'https?://\\S+',
+ -- URLs in parens: (URL)
246
+ '\\((\\w+://[^\\s\\)]+)(?:\\s+[^\\)]*)?\\)',
247
+ -- URLs in brackets: [URL]
248
+ '\\[(\\w+://\\S+?)\\]',
249
+ -- URLs in curly braces: {URL}
250
+ '\\{(\\w+://\\S+?)\\}',
251
+ -- URLs in angle brackets: <URL>
252
+ '<(\\w+://\\S+?)>',
253
+ -- URLs not wrapped in brackets
254
+ '(?<![\\(\\{\\[<])\\b\\w+://\\S+',
255
+ -- Email addresses
256
+ '\\b\\w+@[\\w-]+(\\.[\\w-]+)+\\b',
257
},
258
action = wezterm.action_callback(function(window, pane)
259
local url = window:get_selection_text_for_pane(pane)
0 commit comments