From 895f0ee8c676e1d49f4c6e84d878ea2095946fa1 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 7 Jan 2025 23:46:57 +0800 Subject: [PATCH] feat: wezterm's paste. --- .wezterm.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.wezterm.lua b/.wezterm.lua index b853ef4..2667700 100644 --- a/.wezterm.lua +++ b/.wezterm.lua @@ -12,6 +12,13 @@ config.hide_mouse_cursor_when_typing = false config.initial_cols = 132 config.initial_rows = 43 config.line_height = 1.0 +config.keys = { + { + key = 'Insert', + mods = 'SHIFT', + action = act.PasteFrom 'Clipboard', + }, +} config.mouse_bindings = { { event = {Up = {streak = 1, button = 'Left'}}, @@ -27,7 +34,12 @@ config.mouse_bindings = { event = {Up = {streak = 1, button = 'Middle'}}, mods = 'NONE', action = act.OpenLinkAtMouseCursor, - } + }, + { + event = {Up = {streak = 1, button = 'Right'}}, + mods = 'NONE', + action = act.PasteFrom 'Clipboard', + }, } config.selection_word_boundary = " \t\n{}[]()<>\"'`" config.window_padding = {