2020-10-10 19:19:57 +03:00
|
|
|
# CloseCurrentPane
|
|
|
|
|
|
|
|
Closes the current pane. If that was the last pane in the tab, closes the tab.
|
|
|
|
If that was the last tab, closes that window. If that was the last window,
|
|
|
|
wezterm terminates.
|
|
|
|
|
|
|
|
The act of closing a pane shuts down the PTY associated with the pane and
|
|
|
|
then kills the process associated with that pane.
|
|
|
|
|
|
|
|
```lua
|
|
|
|
return {
|
|
|
|
keys = {
|
2022-02-25 09:04:46 +03:00
|
|
|
{key="w", mods="CMD", action=wezterm.action{CloseCurrentPane={confirm=true}}},
|
2020-10-10 19:19:57 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-03-22 22:42:46 +03:00
|
|
|
When `confirm` is true, an overlay will render over the pane to ask you to
|
|
|
|
confirm whether you want to close it. See also
|
|
|
|
[skip_close_confirmation_for_processes_named](../config/skip_close_confirmation_for_processes_named.md).
|
2020-10-10 19:19:57 +03:00
|
|
|
|
|
|
|
If `confirm` is false then this action will immediately close
|
|
|
|
the pane without prompting.
|
|
|
|
|
|
|
|
|