wezterm backlog

This commit is contained in:
Cynthia Foxwell 2022-09-01 17:48:07 -06:00
parent 7f5533d7b2
commit ee5c00e084

View file

@ -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