Is it possible to show/hide a split-pane? #3779
-
I would like to bind |
Beta Was this translation helpful? Give feedback.
Answered by
nekowinston
May 26, 2023
Replies: 2 comments 2 replies
-
I think you're looking for config.keys = {
{
key = 'T',
mods = 'CTRL',
action = wezterm.action.TogglePaneZoomState,
},
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ianliu
-
Was able to create a map to toggle a vertical split. I think this is the behavior op was looking for. Here it is if anyone is interested. {
key = "F12",
action = wezterm.action_callback(function(_, pane)
local tab = pane:tab()
local panes = tab:panes_with_info()
if #panes == 1 then
pane:split({
direction = "Right",
size = 0.4,
})
elseif not panes[1].is_zoomed then
panes[1].pane:activate()
tab:set_zoomed(true)
elseif panes[1].is_zoomed then
tab:set_zoomed(false)
panes[2].pane:activate()
end
end),
},
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you're looking for
TogglePaneZoomState