diff options
| author | 2026-09-12 02:09:44 -0700 | |
|---|---|---|
| committer | 2026-09-12 02:09:44 -0700 | |
| commit | aedfa5fca0c910b45109fb1eca9a5b7ac184d089 (patch) | |
| tree | 4839860ae14ee133205a23413fde625a68f8cc6b | |
| parent | fbfb6373160eaa49b6760828d7625ab998ca8ac1 (diff) | |
| download | new-dotfiles-aedfa5fca0c910b45109fb1eca9a5b7ac184d089.tar.gz new-dotfiles-aedfa5fca0c910b45109fb1eca9a5b7ac184d089.zip | |
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 ‘-’.”
| -rw-r--r-- | wezterm/.config/wezterm/init.fnl | 2 |
1 files changed, 1 insertions, 1 deletions
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)] |
