repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

feat(wezterm): add keybind help and WSL workspace

c5629d6535541d426fc478c118fc7e7524df78bd

Oliver Krylow <o.krylow@isp-insoft.de> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (1)

wezterm/bugabinga/key_binds.lua

Modified
90 90 local keys = {
91 + {
92 + key = '?',
93 + mods = 'LEADER|SHIFT',
94 + action = wez.action.ShowLauncherArgs {
95 + title = '󰌌 Custom Keybinds',
96 + flags = 'FUZZY|KEY_ASSIGNMENTS',
97 + },
98 + },
92 100 key = '0',
93 101 mods = 'LEADER',
338 +if wez.target_triple:find 'windows' then
339 + table.insert( keys, {
340 + key = 'j',
341 + mods = 'LEADER',
342 + action = wez.action.SwitchToWorkspace {
343 + name = 'wsl',
344 + spawn = {
345 + domain = { DomainName = 'WSL:ArchLinux-dev', },
346 + args = { 'nu', '--login', },
347 + cwd = '~',
348 + },
349 + },
350 + } )
351 +end
330 353 return function ( cfg )
331 354 ---@cast cfg Config
332 355 cfg.disable_default_key_bindings = true