]> git.rmz.io Git - dotfiles.git/commitdiff
wezterm: open urls with rifle
authorSamir Benmendil <me@rmz.io>
Sun, 7 Apr 2024 00:37:03 +0000 (01:37 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 7 Apr 2024 00:37:03 +0000 (01:37 +0100)
This allows urls to be opened with mpv and default to new windowns
depending on rifle config.

wezterm/wezterm.lua

index ba4fc68076e0c200df68febe9c1c7fc896df27db..579775f4a16861aa5615c7e3ab279462d2570534 100644 (file)
@@ -29,7 +29,7 @@ config.keys = {
       action = wezterm.action_callback(function (win, pane)
         local url = win:get_selection_text_for_pane(pane)
         wezterm.log_info('opening: ' .. url)
-        wezterm.open_with(url)
+        wezterm.open_with(url, "rifle")
       end),
     },
   },