]> git.rmz.io Git - dotfiles.git/blobdiff - wezterm/wezterm.lua
nvim: lazydev loads lazy.nvim on LazySpec
[dotfiles.git] / wezterm / wezterm.lua
index a4627b1db1355b2fad42d912b159e0e615b395fc..2689c2cb37fe96523db7a7e9c795efd4e3ea6c6f 100644 (file)
@@ -17,4 +17,27 @@ config.tab_bar_at_bottom            = true
 
 config.quick_select_alphabet = "aoeuisnthd"
 
+config.keys = {
+  {
+    key = 'F',
+    mods = 'CTRL',
+    action = wezterm.action.QuickSelectArgs {
+      label = 'open url',
+      patterns = {
+        'https?://\\S+',
+      },
+      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, "rifle")
+      end),
+    },
+  },
+  {
+    key = 'Enter',
+    mods = 'ALT',
+    action = wezterm.action.DisableDefaultAssignment,
+  },
+}
+
 return config