Terminal should also restore runtime tab titles #16047

Closed
opened 2026-01-31 04:55:54 +00:00 by claunia · 2 comments
Owner

Originally created by @jzymx50 on GitHub (Dec 4, 2021).

Description of the new feature/enhancement

I am using version 1.12 and the window restoration feature is great. But I find it only memorizes the number of panes or tabs you opened last time. It would be better if it can also restore:

  • The name of the tabs. (I often open a tab for the server running and another for git commands. So I rename the tab to make it clear.)
  • The working directory of each tab or pane.

Thanks! 😸

Proposed technical implementation details (optional)

Originally created by @jzymx50 on GitHub (Dec 4, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> I am using version 1.12 and the window restoration feature is great. But I find it only memorizes the number of panes or tabs you opened last time. It would be better if it can also restore: - The name of the tabs. (I often open a tab for the server running and another for git commands. So I rename the tab to make it clear.) - The working directory of each tab or pane. Thanks! 😸 # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@Rosefield commented on GitHub (Dec 6, 2021):

For the name of tabs, that can be added to the list in #9800. Right now the terminal saves the tab title attached to a pane (from using the tabTitle argument on creation), but I missed the one that can be set otherwise at runtime.

For the working directory, if you have configured your shell to use the OSC 9;9 code to tell the terminal what your directory is, it will save that currently. https://github.com/MicrosoftDocs/terminal/pull/449 has documentation for how to add that.

@Rosefield commented on GitHub (Dec 6, 2021): For the name of tabs, that can be added to the list in #9800. Right now the terminal saves the tab title attached to a pane (from using the `tabTitle` argument on creation), but I missed the one that can be set otherwise at runtime. For the working directory, if you have configured your shell to use the OSC 9;9 code to tell the terminal what your directory is, it will save that currently. https://github.com/MicrosoftDocs/terminal/pull/449 has documentation for how to add that.
Author
Owner

@ghost commented on GitHub (Feb 3, 2022):

:tada:This issue was addressed in #12073, which has now been successfully released as Windows Terminal Preview v1.13.10336.0.🎉

Handy links:

@ghost commented on GitHub (Feb 3, 2022): :tada:This issue was addressed in #12073, which has now been successfully released as `Windows Terminal Preview v1.13.10336.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.13.10336.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16047