wsl, keybindings, shell integration
This commit is contained in:
parent
a831d77179
commit
4da6a985ab
23
.wezterm.lua
23
.wezterm.lua
@ -50,6 +50,24 @@ config.keys = {
|
||||
mods = 'LEADER|CTRL',
|
||||
action = wezterm.action.SendKey { key = 'a', mods = 'CTRL' },
|
||||
},
|
||||
{
|
||||
key = 'k',
|
||||
mods = 'ALT',
|
||||
action = wezterm.action.ScrollToPrompt(-1)
|
||||
},
|
||||
{
|
||||
key = 'j',
|
||||
mods = 'ALT',
|
||||
action = wezterm.action.ScrollToPrompt(1)
|
||||
},
|
||||
}
|
||||
|
||||
config.mouse_bindings = {
|
||||
{
|
||||
event = { Down = { streak = 2, button='Left' } },
|
||||
action = wezterm.action.SelectTextAtMouseCursor 'SemanticZone',
|
||||
mods = 'SHIFT'
|
||||
}
|
||||
}
|
||||
|
||||
config.font = wezterm.font 'JetBrains Mono'
|
||||
@ -68,5 +86,10 @@ config.inactive_pane_hsb = {
|
||||
brightness = 0.6,
|
||||
}
|
||||
|
||||
-- WSL
|
||||
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
|
||||
config.default_domain = 'WSL:Debian'
|
||||
end
|
||||
|
||||
-- and finally, return the configuration to wezterm
|
||||
return config
|
||||
|
Loading…
Reference in New Issue
Block a user