736 B
736 B
CloseCurrentTab
Closes the current tab, terminating all contained panes. If that was the last tab, closes that window. If that was the last window, wezterm terminates.
return {
keys = {
{key="w", mods="CMD", action="CloseCurrentTab"},
}
}
Since: nightly
The nightly builds have changed CloseCurrentTab so that it requires
a boolean confirm parameter:
return {
keys = {
{key="w", mods="CMD",
action=wezterm.action{CloseCurrentTab={confirm=true}}
}
}
When confirm is true, an overlay will render over the tab to
ask you to confirm whether you want to close it.
If confirm is false then this action will immediately close
the tab and terminates its panes without prompting.