Mutiple opened tabs don't show properly #2977

Closed
opened 2026-01-30 23:10:07 +00:00 by claunia · 2 comments
Owner

Originally created by @niudai on GitHub (Jul 28, 2019).

Environment

Windows build number: 10.0.18362.239[run "ver" at a command prompt]
Windows Terminal version 0.2.1831.0:

Any other software? No

Steps to reproduce

material. -->
Opened one WSL terminal tab with a relatively long path like this:

image

The path is too long to give other opened tabs space to show.

I opened another WSL tab, but I cannot see it in the tab bar, only when I maximize the window size can I see it.

normal size

image

maximum size

image

Expected behavior

The tab with relatively long path should shorten itself to give other tabs enough space to show, like in vscode or vs.

Actually this could not be a bug, but may be an issue or feature to be considered.

Originally created by @niudai on GitHub (Jul 28, 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. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.18362.239[run "ver" at a command prompt] Windows Terminal version 0.2.1831.0: Any other software? No ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> material. --> Opened one WSL terminal tab with a relatively long path like this: ![image](https://user-images.githubusercontent.com/44165182/62001710-04928f00-b129-11e9-9292-ae974dcc4369.png) The path is too long to give other opened tabs space to show. I opened another WSL tab, but I cannot see it in the tab bar, only when I maximize the window size can I see it. ## normal size ![image](https://user-images.githubusercontent.com/44165182/62001733-74a11500-b129-11e9-81a2-11ea31aa7709.png) ## maximum size ![image](https://user-images.githubusercontent.com/44165182/62001722-48859400-b129-11e9-90d0-64750d945afc.png) # Expected behavior The tab with relatively long path should shorten itself to give other tabs enough space to show, like in vscode or vs. Actually this could not be a bug, but may be an issue or feature to be considered. <!-- A description of what you're expecting, possibly containing screenshots or reference -->
claunia added the Resolution-Duplicate label 2026-01-30 23:10:07 +00:00
Author
Owner

@imjasonmiller commented on GitHub (Jul 29, 2019):

This might be related to #608 and #1358, where support for a custom tab title was added with the tabTitle setting. I have shortened mine, as can be seen here. It doesn't appear to support a dynamic titles at the moment, but there was some talk of that in #1320. On a side note, it looks like you are running an older build which might not support tabTitle yet.


Just an update, as those mentioned sequences from #608 might also be of interest to you. I added the following to my .zshrc:

# Uncomment the following line to disable auto-setting terminal title.
DISABLE_AUTO_TITLE="true"
precmd () { print -Pn "\e]0;wsl - %3d\a" }

Although I don't know what it exactly does yet, it does suit my needs, as my title now only consists of the last three directories.

image

@imjasonmiller commented on GitHub (Jul 29, 2019): This might be related to #608 and #1358, where support for a custom tab title was added with the `tabTitle` setting. I have shortened mine, as can be seen [here](https://user-images.githubusercontent.com/12190184/62066481-b87f4180-b231-11e9-9167-71a873b4f15e.png). It doesn't appear to support a dynamic titles at the moment, but there was some talk of that in #1320. On a side note, it looks like you are running an older build which might not support `tabTitle` yet. --- Just an update, as those mentioned sequences from #608 might also be of interest to you. I added the following to my `.zshrc`: ```sh # Uncomment the following line to disable auto-setting terminal title. DISABLE_AUTO_TITLE="true" precmd () { print -Pn "\e]0;wsl - %3d\a" } ``` Although I don't know what it exactly does yet, it does suit my needs, as my title now only consists of the last three directories. ![image](https://user-images.githubusercontent.com/12190184/62069724-36931680-b239-11e9-98da-ab49bc94608c.png)
Author
Owner

@DHowett-MSFT commented on GitHub (Jul 29, 2019):

Also #857 😄

We should have better documentation on how to drive dynamic titles from the shell. That'd be cool.

@DHowett-MSFT commented on GitHub (Jul 29, 2019): Also #857 :smile: We should have better documentation on how to drive dynamic titles from the shell. That'd be cool.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2977