From 7ace4d1efbeabbc49a2a95132dc36cfd2bb860c4 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 22 Mar 2021 11:48:23 -0700 Subject: [PATCH] docs: clarify how to disable per-tab close prompts https://github.com/wez/wezterm/issues/562 --- docs/config/lua/config/window_close_confirmation.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/config/lua/config/window_close_confirmation.md b/docs/config/lua/config/window_close_confirmation.md index bc4c7444b..d0f26c9de 100644 --- a/docs/config/lua/config/window_close_confirmation.md +++ b/docs/config/lua/config/window_close_confirmation.md @@ -1,5 +1,9 @@ # `window_close_confirmation` +Whether to display a confirmation prompt when the window is closed by the +windowing environment, either because the user closed it with the window +decorations, or instructed their window managed to close it. + Set this to `"NeverPrompt"` if you don't like confirming closing windows every time. @@ -8,3 +12,8 @@ return { window_close_confirmation = "AlwaysPrompt", } ``` + +Note that this doesn't apply to the default `CTRL-SHIFT-W` or `CMD-w` +key assignments; if you want to change prompts for those, you will need to +override the key shortcut as shown in the +[CloseCurrentTab](../keyassignment/CloseCurrentTab.md) documentation.