From c4f2522f2b8bccdfcbf803543805d7d8810ac2da Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 17 Jun 2024 08:30:06 +0200 Subject: [PATCH] wezterm: Ensure CTRL and SHIFT mods passed through These bindings ensure that wezterm understands (and informs the shell) that `` and `` are different key binds than just `` on its own. For example 'euporie' uses it to mimic the python notebook 'enter means newline but ctrl-enter means execute' style of quick coding. --- terminal/.config/wezterm/maps.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminal/.config/wezterm/maps.lua b/terminal/.config/wezterm/maps.lua index a582345..b519d12 100644 --- a/terminal/.config/wezterm/maps.lua +++ b/terminal/.config/wezterm/maps.lua @@ -101,6 +101,8 @@ local keys = { }, { key = "a", mods = "CTRL|ALT", action = act.EmitEvent("toggle-leader") }, { key = "t", mods = "LEADER", action = act.EmitEvent("toggle-tabbar") }, + { key = "Enter", mods = "CTRL", action = wezterm.action({ SendString = "\x1b[13;5u" }) }, + { key = "Enter", mods = "SHIFT", action = wezterm.action({ SendString = "\x1b[13;2u" }) }, } -- Leader + number to activate that tab for i = 1, 8 do