Wezterm_create_tab
I wanted to use <Leader>+r to toggle fullscreen; create a new tab; create three panes in that tab. Tried wezterm.action.Multiple
.. but settled with action_callback
and the mux
API.
{
key = 'r',
mods = 'LEADER',
action = wezterm.action_callback(function(win, pane)
win:toggle_fullscreen {}
local wmux = win:mux_window {}
local t, p, w = wmux:spawn_tab {}
p:split {direction = 'Bottom', size = 0.2, args = { 'irb' }}
p:split {direction = 'Right', size = 0.2, args = { 'ri' }}
p:activate()
end),
},