wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Add a configuration option to prompt confirmation when closing tab

Open yaslama opened this issue 2 years ago • 0 comments

fix #2350

Replace #2380

yaslama avatar Aug 09 '22 21:08 yaslama

I pushed f2f2b8389 which is a subset of this; just the bits that make middle clicking trigger the prompt according to the established rules for closing tabs with confirmation.

I don't want to add another confirmation option for tabs that bypasses that logic because it makes things even more complex than they already are, diverges the behavior around window and tab closing, and the implementation in this PR has that at the wrong layer: it forces the use of a global configuration rather than the config scoped to the window which makes things a bit more difficult to manage.

What I'd recommend for you is that you set skip_close_confirmation_for_processes_named = {} so that you always get a prompt when you close a tab using the mouse.

wez avatar Aug 21 '22 16:08 wez

Thanks a lot!! This fixes the issue for me.

yaslama avatar Aug 21 '22 17:08 yaslama