feat: wezterm's paste.

This commit is contained in:
Gea-Suan Lin
2025-01-07 23:46:57 +08:00
parent 8dc0427829
commit 895f0ee8c6

View File

@@ -12,6 +12,13 @@ config.hide_mouse_cursor_when_typing = false
config.initial_cols = 132 config.initial_cols = 132
config.initial_rows = 43 config.initial_rows = 43
config.line_height = 1.0 config.line_height = 1.0
config.keys = {
{
key = 'Insert',
mods = 'SHIFT',
action = act.PasteFrom 'Clipboard',
},
}
config.mouse_bindings = { config.mouse_bindings = {
{ {
event = {Up = {streak = 1, button = 'Left'}}, event = {Up = {streak = 1, button = 'Left'}},
@@ -27,7 +34,12 @@ config.mouse_bindings = {
event = {Up = {streak = 1, button = 'Middle'}}, event = {Up = {streak = 1, button = 'Middle'}},
mods = 'NONE', mods = 'NONE',
action = act.OpenLinkAtMouseCursor, action = act.OpenLinkAtMouseCursor,
} },
{
event = {Up = {streak = 1, button = 'Right'}},
mods = 'NONE',
action = act.PasteFrom 'Clipboard',
},
} }
config.selection_word_boundary = " \t\n{}[]()<>\"'`" config.selection_word_boundary = " \t\n{}[]()<>\"'`"
config.window_padding = { config.window_padding = {