From 6b1e0710f391dde4bcfa715b4c5ed8ad691ca58b Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Wed, 13 Mar 2024 01:14:32 +0800 Subject: [PATCH] Change link clicking behavior. --- .wezterm.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.wezterm.lua b/.wezterm.lua index 7d1bcf4..82a63e4 100644 --- a/.wezterm.lua +++ b/.wezterm.lua @@ -1,5 +1,7 @@ -- local wezterm = require 'wezterm' + +local act = wezterm.action local config = wezterm.config_builder() config.check_for_updates = false @@ -9,6 +11,18 @@ config.font_size = 18.0 config.hide_mouse_cursor_when_typing = false config.initial_cols = 132 config.initial_rows = 43 +config.mouse_bindings = { + { + event = {Up = {streak = 1, button = 'Left'}}, + mods = 'NONE', + action = act.CompleteSelection 'ClipboardAndPrimarySelection', + }, + { + event = {Up = {streak = 1, button = 'Left'}}, + mods = 'CTRL', + action = act.OpenLinkAtMouseCursor, + } +} config.window_padding = { bottom = 0, left = 0,