closeTab should present a confirmation dialog #7346

Open
opened 2026-01-31 01:01:38 +00:00 by claunia · 6 comments
Owner

Originally created by @carlos-zamora on GitHub (Apr 9, 2020).

Description of the new feature/enhancement

closeTab should present a confirmation dialog if multiple panes are open. This would prevent users from accidentally closing all panes in a tab by accident.

Originally created by @carlos-zamora on GitHub (Apr 9, 2020). # Description of the new feature/enhancement `closeTab` should present a confirmation dialog if multiple panes are open. This would prevent users from accidentally closing all panes in a tab by accident.
claunia added the Help WantedIssue-TaskIn-PRProduct-TerminalArea-UserInterface labels 2026-01-31 01:01:38 +00:00
Author
Owner

@eugenesvk commented on GitHub (Feb 16, 2021):

I'd suggest to have this user-configurable so that you could have both a close-without-confirmation command and a close-with-confirmation one and bind them to separate keybinds if you like (e.g. with the latter command bound to combo less fat-finger prone)

@eugenesvk commented on GitHub (Feb 16, 2021): I'd suggest to have this user-configurable so that you could have both a close-without-confirmation command and a close-with-confirmation one and bind them to separate keybinds if you like (e.g. with the latter command bound to combo less fat-finger prone)
Author
Owner

@htcfreek commented on GitHub (Apr 18, 2021):

I had the same request in the linked issue. One suggestion I'd like to mention here is that you should ask the user what to do instead of simply warning the user.

Example

Tab with split-pane: powershell | cmd
Question:

What should be closed?
Closing the last tab closes the whole window.

[*this pane*] [tab] [cancel]
@htcfreek commented on GitHub (Apr 18, 2021): I had the same request in the linked issue. One suggestion I'd like to mention here is that you should ask the user what to do instead of simply warning the user. ### Example **Tab with split-pane:** powershell | cmd **Question:** ``` What should be closed? Closing the last tab closes the whole window. [*this pane*] [tab] [cancel] ```
Author
Owner

@Vampire commented on GitHub (Jul 5, 2023):

Please also make it possible to show a warning on simple tab closing, not only with multiple panes.
It happened multiple times to me that I accidentally closed a tab and sometimes there were even processes running inside.
I'd prefer to always be warned before closing a tab.

@Vampire commented on GitHub (Jul 5, 2023): Please also make it possible to show a warning on simple tab closing, not only with multiple panes. It happened multiple times to me that I accidentally closed a tab and sometimes there were even processes running inside. I'd prefer to always be warned before closing a tab.
Author
Owner

@zadjii-msft commented on GitHub (Jul 5, 2023):

Yep, I'm pretty sure that's tracked as a part of https://github.com/microsoft/terminal/issues/6549#issuecomment-675494526.

@zadjii-msft commented on GitHub (Jul 5, 2023): Yep, I'm pretty sure that's tracked as a part of https://github.com/microsoft/terminal/issues/6549#issuecomment-675494526.
Author
Owner

@tovine commented on GitHub (Aug 5, 2023):

Same here, I just misclicked and lost one of my tabs with an active SSH connection and ongoing work.
At least ask for confirmation if a process (like SSH) is running, closing an "idle" terminal is OK but one that is in use is sad 😢

@tovine commented on GitHub (Aug 5, 2023): Same here, I just misclicked and lost one of my tabs with an active SSH connection and ongoing work. At least ask for confirmation if a process (like SSH) is running, closing an "idle" terminal is OK but one that is in use is sad :cry:
Author
Owner

@salminenniklas commented on GitHub (Jun 11, 2025):

Is this still being implemented? Its been 5 years and it's still a major issue especially on lower resolution displays with multiple tabs open. The close button takes 50% of the clickable space.

@salminenniklas commented on GitHub (Jun 11, 2025): Is this still being implemented? Its been 5 years and it's still a major issue especially on lower resolution displays with multiple tabs open. The close button takes 50% of the clickable space.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7346