Tab name too long #3887

Closed
opened 2026-01-30 23:32:32 +00:00 by claunia · 5 comments
Owner

Originally created by @ain-soph on GitHub (Sep 16, 2019).

Environment

Windows build number:
powershell version
$psversiontable

PSVersion 5.1.18362.145
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.145
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Windows Terminal version (if applicable): Windows Terminal (Preview) 0.4.2382.0

Any other software?
No

Steps to reproduce

  1. Open two tabs in the terminal.
  2. In the first terminal, type "ubuntu" to go into WSL.
  3. cd it into a path with a long name.

Expected behavior

Every tab name should be limited in a certain length or set adaptively.

It should be easy to switch among tabs and easy to close.

Actual behavior

The tab name is too long but the terminal doesn't give it a length limit, and it strongly affects the function of following tabs.
There is no close button for the second tab.

image

Originally created by @ain-soph on GitHub (Sep 16, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment Windows build number: powershell version $psversiontable PSVersion 5.1.18362.145 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.18362.145 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 Windows Terminal version (if applicable): Windows Terminal (Preview) 0.4.2382.0 Any other software? No # Steps to reproduce 1. Open two tabs in the terminal. 2. In the first terminal, type "ubuntu" to go into WSL. 3. cd it into a path with a long name. # Expected behavior Every tab name should be limited in a certain length or set adaptively. It should be easy to switch among tabs and easy to close. # Actual behavior The tab name is too long but the terminal doesn't give it a length limit, and it strongly affects the function of following tabs. There is no close button for the second tab. ![image](https://user-images.githubusercontent.com/13214530/64932516-90fa2d80-d80d-11e9-8c0f-92c177e2187c.png)
claunia added the Resolution-Duplicate label 2026-01-30 23:32:32 +00:00
Author
Owner

@mdtauk commented on GitHub (Sep 16, 2019):

You do have the ability to set the tab text for each profile, which will prevent the really long text appearing. But I think you may be asking for either a MaxWidth for the Tabs (perhaps as a global setting) - or you would like to set a character count, which when met, would cut the text with an ellipses … (the full text of the Tab text, could appear in the tooltip)

@mdtauk commented on GitHub (Sep 16, 2019): You do have the ability to set the tab text for each profile, which will prevent the really long text appearing. But I think you may be asking for either a MaxWidth for the Tabs (perhaps as a global setting) - or you would like to set a character count, which when met, would cut the text with an ellipses **…** (the full text of the Tab text, could appear in the tooltip)
Author
Owner

@ain-soph commented on GitHub (Sep 16, 2019):

You do have the ability to set the tab text for each profile, which will prevent the really long text appearing. But I think you may be asking for either a MaxWidth for the Tabs (perhaps as a global setting) - or you would like to set a character count, which when met, would cut the text with an ellipses … (the full text of the Tab text, could appear in the tooltip)

Yes. It behaves well on normal tabs (But it just shows "Powershell" rather than the file path). When I use WSL in the terminal, there is no MaxWidth property I guess.

The MaxWidth property works I think. But I hope there could be a more beautiful way to show the information adaptively according to the width of the terminal window.

image

@ain-soph commented on GitHub (Sep 16, 2019): > You do have the ability to set the tab text for each profile, which will prevent the really long text appearing. But I think you may be asking for either a MaxWidth for the Tabs (perhaps as a global setting) - or you would like to set a character count, which when met, would cut the text with an ellipses … (the full text of the Tab text, could appear in the tooltip) Yes. It behaves well on normal tabs (But it just shows "Powershell" rather than the file path). When I use WSL in the terminal, there is no MaxWidth property I guess. The MaxWidth property works I think. But I hope there could be a more beautiful way to show the information adaptively according to the width of the terminal window. ![image](https://user-images.githubusercontent.com/13214530/64932990-a0c74100-d810-11e9-980e-e51eb3c65a33.png)
Author
Owner

@DHowett-MSFT commented on GitHub (Sep 16, 2019):

If you need a quick fix, change your shell settings to not set your title to something so long. 😄

@DHowett-MSFT commented on GitHub (Sep 16, 2019): If you need a quick fix, change your shell settings to not set your title to something so long. :smile:
Author
Owner

@DHowett-MSFT commented on GitHub (Sep 16, 2019):

/dup #2645

@DHowett-MSFT commented on GitHub (Sep 16, 2019): /dup #2645
Author
Owner

@ghost commented on GitHub (Sep 16, 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 (Sep 16, 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#3887