microsoft/Terminal

Cancel tab rename if I click elsewhere without editing the title

開放

#17,027 建立於 2024年4月7日

 (0 則留言) (0 個反應) (0 位負責人)C++ (9,275 個分叉)batch import
Area-UserInterfaceHelp WantedIssue-FeatureProduct-Terminal

倉庫指標

星標
 (103,173 顆星)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

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.

貢獻者指南