diff --git a/common/.wezterm.lua b/common/.wezterm.lua index b982805..9ff7445 100644 --- a/common/.wezterm.lua +++ b/common/.wezterm.lua @@ -137,6 +137,30 @@ local config = { keys = { -- disable search (ctrl f = tab) {key = "f", mods = "CTRL|SHIFT", action = "DisableDefaultAssignment"}, + -- launcher + {key = "Space", mods = "CTRL|SHIFT", action = "ShowLauncher"}, + }, + mouse_bindings = { + -- Change the default selection behavior so that it only selects text, + -- but doesn't copy it to a clipboard or open hyperlinks. + { + event={Up={streak=1, button="Left"}}, + mods="NONE", + action=wezterm.action{ExtendSelectionToMouseCursor="Cell"} + }, + -- Don't automatically copy the selection to the clipboard + -- when double clicking a word + { + event={Up={streak=2, button="Left"}}, + mods="NONE", + action="Nop", + }, + -- Ctrl-click will open the link under the mouse cursor + { + event={Up={streak=1, button="Left"}}, + mods="CTRL", + action="OpenLinkAtMouseCursor", + }, }, } @@ -147,6 +171,7 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then "Terminus (TTF)", "SijiNGWindows", "Unifont", + "Noto Emoji", }) config.unix_domains = { { @@ -169,11 +194,19 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then "-no-start","-defterm","-mingw64", }, }) + table.insert(config.launch_menu, { + label = "cygwin", + args = { + "D:/Programs/cygwin/bin/bash", + "--login", + }, + }) else config.font = wezterm.font_with_fallback({ "Terminus", "Siji", "Unifont", + "Noto Emoji", }) end