From de6780f87b79b9dc2ef0518ce04fc91caf75a906 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Thu, 21 Mar 2024 23:12:41 +0800 Subject: [PATCH] Use middle click to open links. --- .wezterm.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.wezterm.lua b/.wezterm.lua index dcc66c6..f9bcc94 100644 --- a/.wezterm.lua +++ b/.wezterm.lua @@ -18,8 +18,13 @@ config.mouse_bindings = { action = act.CompleteSelection 'ClipboardAndPrimarySelection', }, { - event = {Up = {streak = 1, button = 'Left'}}, - mods = 'CTRL', + event = {Down = {streak = 1, button = 'Middle'}}, + mods = 'NONE', + action = act.Nop, + }, + { + event = {Up = {streak = 1, button = 'Middle'}}, + mods = 'NONE', action = act.OpenLinkAtMouseCursor, } }