chore(wezterm): add comments to keybindings

This commit is contained in:
Stefan Imhoff
2024-01-28 17:09:41 +01:00
parent 051eb892be
commit 855ac8897b

View File

@@ -62,41 +62,36 @@ config.window_padding = {
-- Custom Keybindings -- Custom Keybindings
config.keys = { config.keys = {
{ key = "Enter", mods = "CMD", action = wezterm.action.ToggleFullScreen }, { key = "Enter", mods = "CMD", action = wezterm.action.ToggleFullScreen }, -- Toggle fullscreen
{ key = "%", mods = "CTRL|ALT|SHIFT", action = wezterm.action({ SendString = "\2%" }) }, { key = ",", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2v" }) }, -- Rename window
{ key = ",", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2v" }) }, { key = "1", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\21" }) }, -- window 1
{ key = ",", mods = "CTRL|CMD", action = wezterm.action({ SplitHorizontal = { domain = "CurrentPaneDomain" } }) }, { key = "2", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\22" }) }, -- window 2
{ key = "1", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\21" }) }, { key = "3", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\23" }) }, -- window 3
{ key = "2", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\22" }) }, { key = "4", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\24" }) }, -- window 4
{ key = "3", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\23" }) }, { key = "5", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\25" }) }, -- window 5
{ key = "4", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\24" }) }, { key = "6", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\26" }) }, -- window 6
{ key = "5", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\25" }) }, { key = "7", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\27" }) }, -- window 7
{ key = "6", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\26" }) }, { key = "8", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\28" }) }, -- window 8
{ key = "7", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\27" }) }, { key = "9", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\29" }) }, -- window 9
{ key = "8", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\28" }) }, { key = ";", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2:" }) }, -- Command Mode
{ key = "9", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\29" }) }, { key = "D", mods = "CTRL|ALT|SHIFT", action = wezterm.action({ SendString = "\2D" }) }, -- Lazydocker
{ key = ";", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2:" }) }, { key = "[", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2p" }) }, -- Previous window
{ key = "D", mods = "CTRL|ALT|SHIFT", action = wezterm.action({ SendString = "\2D" }) }, { key = "]", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2n" }) }, -- Next window
{ key = "[", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2p" }) }, { key = "d", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2d" }) }, -- Detach session
{ key = "]", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2n" }) }, { key = "f", mods = "CTRL|ALT", action = wezterm.action({ SendString = ":Grep\n" }) }, -- Telescope Live Grep
{ key = "d", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2d" }) }, { key = "g", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2G" }) }, -- Lazygit
{ key = "f", mods = "CTRL|ALT", action = wezterm.action({ SendString = ":Grep\n" }) }, { key = "h", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2p" }) }, -- Previous window
{ key = "f", mods = "CTRL|ALT|SHIFT", action = wezterm.action({ SendString = "\2O" }) }, { key = "i", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2i" }) }, -- Cht.sh
{ key = "g", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2G" }) }, { key = "j", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2s" }) }, -- Select windows
{ key = "h", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2p" }) }, { key = "k", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2s" }) }, -- Select windows
{ key = "i", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2i" }) }, { key = "l", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2n" }) }, -- Next window
{ key = "j", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2s" }) }, { key = "p", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2\84" }) }, -- Smart tmux session manager
{ key = "k", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2s" }) }, { key = "q", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2d" }) }, -- Detach session
{ key = "l", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2n" }) }, { key = "r", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2R" }) }, -- Return to last session
{ key = "n", mods = "CTRL|ALT|SHIFT", action = wezterm.action({ SendString = "" }) }, { key = "t", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2c" }) }, -- New window
{ key = "p", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2\84" }) }, { key = "w", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2x" }) }, -- Close window
{ key = "q", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2d" }) }, { key = "y", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2!" }) }, -- Move pane to new window
{ key = "r", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2R" }) }, { key = "z", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2z" }) }, -- Zoom into window
{ key = "s", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2f" }) },
{ key = "t", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2c" }) },
{ key = "w", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2x" }) },
{ key = "y", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2!" }) },
{ key = "z", mods = "CTRL|ALT", action = wezterm.action({ SendString = "\2z" }) },
} }
return config return config