mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
chezmoi: reorganise repo
This commit is contained in:
parent
b391e03c87
commit
67a78879db
278 changed files with 102 additions and 182 deletions
67
home/dot_config/wezterm/keymaps/leaders.lua
Normal file
67
home/dot_config/wezterm/keymaps/leaders.lua
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
local M = {}
|
||||
local wezterm = require("wezterm")
|
||||
local act = wezterm.action
|
||||
|
||||
-- #region Leader Keymaps
|
||||
M.common = {
|
||||
{
|
||||
key = "q",
|
||||
mods = "LEADER",
|
||||
action = act.SendKey({ key = "q", mods = "CTRL" }),
|
||||
},
|
||||
-- Windows Management
|
||||
{ -- leader keys
|
||||
key = "|",
|
||||
mods = "LEADER|SHIFT",
|
||||
action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }),
|
||||
},
|
||||
{
|
||||
key = "-",
|
||||
mods = "LEADER",
|
||||
action = act.SplitVertical({ domain = "CurrentPaneDomain" }),
|
||||
},
|
||||
{
|
||||
key = "h",
|
||||
mods = "LEADER",
|
||||
action = act.ActivatePaneDirection("Left"),
|
||||
},
|
||||
{
|
||||
key = "H",
|
||||
mods = "LEADER",
|
||||
action = act.AdjustPaneSize({ "Left", 5 }),
|
||||
},
|
||||
{
|
||||
key = "/",
|
||||
mods = "LEADER",
|
||||
action = act.Search({ Regex = "" }),
|
||||
},
|
||||
{
|
||||
key = "?",
|
||||
mods = "LEADER|SHIFT",
|
||||
action = act.Search({ CaseSensitiveString = "" }),
|
||||
},
|
||||
{
|
||||
key = ";",
|
||||
mods = "LEADER",
|
||||
action = act.ShowLauncher,
|
||||
},
|
||||
{
|
||||
key = ":",
|
||||
mods = "LEADER|SHIFT",
|
||||
action = act.ActivateCommandPalette,
|
||||
},
|
||||
{
|
||||
key = "r",
|
||||
mods = "LEADER",
|
||||
action = act.ActivateKeyTable({
|
||||
name = "resize_pane",
|
||||
one_shot = false,
|
||||
timeout_milliseconds = 2000,
|
||||
}),
|
||||
},
|
||||
}
|
||||
-- #endregion
|
||||
|
||||
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue