Cancel tab rename if I click elsewhere without editing the title #21497

Open
opened 2026-01-31 07:46:22 +00:00 by claunia · 0 comments
Owner

Originally created by @KalleOlaviNiemitalo on GitHub (Apr 7, 2024).

Description of the new feature/enhancement

I sometimes accidentally double-click the title of a tab that I only intended to click once. Windows Terminal then opens the tab title for editing. When I see that the tab title got the focus, I instinctively click the session pane to move the focus back there. However, Windows Terminal interprets this click as meaning that I confirmed the rename. After that, the tab title no longer updates when the shell attempts to change it. To make it update again, I have to edit the title, delete all text, and confirm that.

I wish that Windows Terminal instead interpreted the click as meaning that I'm canceling the rename, if I have not edited the title.

Proposed technical implementation details (optional)

Windows Terminal could either detect whether I edit the tab title at all while the edit box is open, or just compare the title to the existing one when the edit box loses the focus.

The Enter key should still confirm the rename even if the new title matches the current one.

Originally created by @KalleOlaviNiemitalo on GitHub (Apr 7, 2024). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement I sometimes accidentally double-click the title of a tab that I only intended to click once. Windows Terminal then opens the tab title for editing. When I see that the tab title got the focus, I instinctively click the session pane to move the focus back there. However, Windows Terminal interprets this click as meaning that I confirmed the rename. After that, the tab title no longer updates when the shell attempts to change it. To make it update again, I have to edit the title, delete all text, and confirm that. I wish that Windows Terminal instead interpreted the click as meaning that I'm canceling the rename, if I have not edited the title. # Proposed technical implementation details (optional) Windows Terminal could either detect whether I edit the tab title at all while the edit box is open, or just compare the title to the existing one when the edit box loses the focus. The Enter key should still confirm the rename even if the new title matches the current one.
claunia added the Issue-FeatureHelp WantedProduct-TerminalArea-UserInterface labels 2026-01-31 07:46:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21497