toggle maximize with key #5504
luanbt21
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
Most of the body of that function is an invalid hallucination. Config overrides are not at all related to the window zoom state. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I did it this way. Just try to maximize() it everytime and check if something changed. table.insert(config.keys, {
key = "\r",
mods = "ALT",
action = wezterm.action_callback(function(window)
local old_dim = window:get_dimensions()
window:maximize()
local new_dim = window:get_dimensions()
if (old_dim.pixel_width == new_dim.pixel_width) and (old_dim.pixel_height == new_dim.pixel_height) then
window:restore()
end
end),
})
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ChatGPT assisted me in creating this
Beta Was this translation helpful? Give feedback.
All reactions