Explore the source / dotfiles

Inside dotfiles.

Shell, terminal, backup, and the configuration that joins them. Browse the current public files here, or visit the dotfiles repository on GitHub.

dotfiles / main

home/.config/wezterm/lua/keys.lua

View on GitHub
local M = {}

function M.get(wezterm, act)
   return {
      {
         key = "Enter",
         mods = "ALT",
         action = act.DisableDefaultAssignment,
      },
      {
         key = "t",
         mods = "CMD",
         action = act.SpawnCommandInNewTab({
            cwd = wezterm.home_dir,
         }),
      },
      {
         key = "n",
         mods = "CMD",
         action = act.SpawnCommandInNewWindow({
            cwd = wezterm.home_dir,
         }),
      },
      {
         key = "w",
         mods = "CMD",
         action = act.CloseCurrentTab({ confirm = false }),
      },
      {
         key = "d",
         mods = "CMD",
         action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }),
      },
      {
         key = "d",
         mods = "CMD|SHIFT",
         action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }),
      },
      {
         key = "L",
         mods = "CMD|SHIFT",
         action = act.ShowDebugOverlay,
      },
   }
end

return M