Nudge new users towards using this style:
```lua
local config = {}
config.color_scheme = 'Batman'
return config
```
and surface how to write lua modules closer to the main section
on config files. In that lua modules section, nudge towards using
a convention similar to that of the plugin spec described in
this commit: e4ae8a844d
24 lines
654 B
Markdown
24 lines
654 B
Markdown
# 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.
|
|
|
|
```lua
|
|
config.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. See also
|
|
[skip_close_confirmation_for_processes_named](../config/skip_close_confirmation_for_processes_named.md).
|
|
|
|
|
|
If `confirm` is false then this action will immediately close
|
|
the tab and terminates its panes without prompting.
|
|
|