Feature Request: Tab title max length/truncation #5491

Closed
opened 2026-01-31 00:14:37 +00:00 by claunia · 2 comments
Owner

Originally created by @jonknowles on GitHub (Dec 10, 2019).

Because I use posh-git to append the current git branch name to my terminal prompt, the titles of the tabs in Windows terminal can become very long, appearing in the format <directory><git branch> ~ <terminal program name>. Could the tab names be restricted to a fixed number of characters and some kind of truncation behavior (i.e. ellipsis) be applied?

What I would prefer is if a title that would currently show as something like this:

~\workspace\myDirName [my-current-git-branch-name] ~ PowerShell 6.0.0 64-bit (21244)

Could be truncated to some fixed character length, e.g. 50 and an ellipsis appended:

~workspacemyDirName [my-current-git-branch-name] ~...

Originally created by @jonknowles on GitHub (Dec 10, 2019). Because I use posh-git to append the current git branch name to my terminal prompt, the titles of the tabs in Windows terminal can become very long, appearing in the format `<directory><git branch> ~ <terminal program name>`. Could the tab names be restricted to a fixed number of characters and some kind of truncation behavior (i.e. ellipsis) be applied? What I would prefer is if a title that would currently show as something like this: `~\workspace\myDirName [my-current-git-branch-name] ~ PowerShell 6.0.0 64-bit (21244)` Could be truncated to some fixed character length, e.g. 50 and an ellipsis appended: `~workspacemyDirName [my-current-git-branch-name] ~...`
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 00:14:37 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Dec 10, 2019):

Thanks for the suggestion! We're actually already tracking a number of requests related to the sizing of tabs in #597, which also has a PR in progress over in #3876. I'd recommend taking a look at those for more discussion.

/dup #597

@zadjii-msft commented on GitHub (Dec 10, 2019): Thanks for the suggestion! We're actually already tracking a number of requests related to the sizing of tabs in #597, which also has a PR in progress over in #3876. I'd recommend taking a look at those for more discussion. /dup #597
Author
Owner

@ghost commented on GitHub (Dec 10, 2019):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Dec 10, 2019): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5491