Change link clicking behavior.

This commit is contained in:
Gea-Suan Lin
2024-03-13 01:14:32 +08:00
parent f0448356e8
commit 6b1e0710f3

View File

@@ -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,