From aedfa5fca0c910b45109fb1eca9a5b7ac184d089 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 12 Sep 2026 02:09:44 -0700 Subject: wezterm: Fix url regexp It didn't recognize ‘-’ as part of the URL because it was interpreting the pattern as “any character from ‘/’ until ‘~’” rather than “any character ‘/’, ‘~’, or ‘-’.” --- wezterm/.config/wezterm/init.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wezterm') diff --git a/wezterm/.config/wezterm/init.fnl b/wezterm/.config/wezterm/init.fnl index a76f4ff..1b9aee6 100644 --- a/wezterm/.config/wezterm/init.fnl +++ b/wezterm/.config/wezterm/init.fnl @@ -13,7 +13,7 @@ :mods "CTRL|SHIFT" :action (wezterm.action.QuickSelectArgs { :label "open url" - :patterns [ "https?://[[:alnum:]./-~]+[[:alnum:]/]" ] + :patterns [ "https?://[[:alnum:]./~-]+[[:alnum:]/]" ] :action (wezterm.action_callback (fn [window pane] (let [url (window:get_selection_text_for_pane pane)] -- cgit v1.3-2-g0d8e