From af0036677939beb6a0ce8a189a1f77603b16bdee Mon Sep 17 00:00:00 2001 From: Saksham Mittal Date: Mon, 23 Sep 2024 15:47:06 +0530 Subject: [PATCH] wezterm: tweak pasting binding --- home/wezterm.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/home/wezterm.nix b/home/wezterm.nix index e7d4f9b..d86d962 100644 --- a/home/wezterm.nix +++ b/home/wezterm.nix @@ -37,12 +37,18 @@ -- Disable all default keyboard shortcuts to avoid conflict config.disable_default_key_bindings = true; + config.mouse_bindings = { + { + event = { Up = { streak = 1, button = 'Middle' } }, + mods = 'NONE', + action = wezterm.action.PasteFrom 'PrimarySelection', + }, + } + config.keys = { -- paste from the clipboard { key = 'V', mods = 'CTRL|SHIFT', action = wezterm.action.PasteFrom 'Clipboard' }, - -- paste from the primary selection - { key = 'V', mods = 'CTRL|SHIFT', action = wezterm.action.PasteFrom 'PrimarySelection' }, { -- Split vertical key = '(', -- 2.45.2