Resize Wezterm panes using Arrow Keys #226
-
I would like to configure Wezterm to match how I have configured moving and resizing in Nvim, which is as follows:
Looking at the wezterm plugin options, and looking at the code, it doesn't seem that the above is possible. The configuration seems to make an assumption that
I almost want the opposite. I want both move/resize modifiers to be the same ( Curious to know if I have misread code/documentation, and if someone has managed to manually. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hm, that's not a case I'd thought about. I think to support your case in a backwards compatible way, I could update it to work like so: smart_splits.apply_to_config(config, {
-- if specified like this, share the same direction keys
direction_keys = { 'h', 'j', 'k', 'l' },
-- but you could also do this
direction_keys = {
move = { 'h', 'j', 'k', 'l' },
resize = { 'Up', 'Down', 'Left', 'Right' },
},
modifiers = {
move = 'CTRL', -- modifier to use for pane movement, e.g. CTRL+h to move left
resize = 'META', -- modifier to use for pane resize, e.g. META+h to resize to the left
}
}) |
Beta Was this translation helpful? Give feedback.
Hm, that's not a case I'd thought about.
I think to support your case in a backwards compatible way, I could update it to work like so: