X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/323d09a696fc17d73d44ac18b773449f47dd7f97..e081ae2be04bf7224eadc202f3b9e821d65a440b:/wezterm/wezterm.lua diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index a4627b1..ba4fc68 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -17,4 +17,22 @@ 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) + end), + }, + }, +} + return config