Skip to content

Commit

Permalink
chore(wez): keys for resizing panes
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnwriter committed Sep 6, 2024
1 parent f94c987 commit 4926ac6
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions modules/configs/wezterm/keys.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
local wezterm = require "wezterm"
local act = wezterm.action
local act_cb = wezterm.action_callback

local keybindings = {

Expand All @@ -26,20 +25,12 @@ local keybindings = {
{ key = "l", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection "Right" },
{ key = "k", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection "Up" },
{ key = "j", mods = "SHIFT|CTRL", action = act.ActivatePaneDirection "Down" },
{ key = "z", mods = "SHIFT|CTRL", action = "TogglePaneZoomState" },

--- rename tab
-- {
-- key = "R",
-- mods = "CTRL|SHIFT",
-- action = act.PromptInputLine {
-- description = "Enter new name for tab",
-- action = wezterm.action_callback(function(window, _, line)
-- if line then
-- window:active_tab():set_title(line)
-- end
-- end),
-- },
-- },
{ key = "h", mods = "SHIFT|ALT", action = wezterm.action { AdjustPaneSize = { "Left", 5 } } },
{ key = "j", mods = "SHIFT|ALT", action = wezterm.action { AdjustPaneSize = { "Down", 5 } } },
{ key = "k", mods = "SHIFT|ALT", action = wezterm.action { AdjustPaneSize = { "Up", 5 } } },
{ key = "l", mods = "SHIFT|ALT", action = wezterm.action { AdjustPaneSize = { "Right", 5 } } },
}

return keybindings

0 comments on commit 4926ac6

Please sign in to comment.