[PR #12073] Persist Runtime TabTitle and Maximize/Focus/Fullscreen states #28832

Open
opened 2026-01-31 09:31:03 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/12073

State: closed
Merged: Yes


This commit adds additional information to the persisted window layouts.

  • Runtime tab titles
  • Focus, Maximized, and Fullscreen modes.

Also,

  • Adds actions for Set{Focus,FullScreen} that take a boolean
    to work in addition to the current Toggle{Focus, Fullscreen} actions.
  • Adds SetMaximized that takes a boolean.
    This adds the capability to maximize (resp restore) a window using
    standard terminal actions.
    This also involves hooking up a good amount of state tracking between
    the terminal page and the window to see when maximize state has changed
    so that it can be persisted.
  • These actions are not added to the default settings, but they could be.
    The intention is that they could assist with automation (and was originally)
    how I planned on persisting the state instead of augmenting the LaunchMode.
  • The fullscreen/maximized saving isn't perfect because we don't have a
    way to save the non-maximized/fullscreen size, so exiting the modes
    won't restore whatever the previous size was.

References #9800
Closes #11878
Closes #11426

**Original Pull Request:** https://github.com/microsoft/terminal/pull/12073 **State:** closed **Merged:** Yes --- This commit adds additional information to the persisted window layouts. - Runtime tab titles - Focus, Maximized, and Fullscreen modes. Also, - Adds actions for Set{Focus,FullScreen} that take a boolean to work in addition to the current Toggle{Focus, Fullscreen} actions. - Adds SetMaximized that takes a boolean. This adds the capability to maximize (resp restore) a window using standard terminal actions. This also involves hooking up a good amount of state tracking between the terminal page and the window to see when maximize state has changed so that it can be persisted. - These actions are not added to the default settings, but they could be. The intention is that they could assist with automation (and was originally) how I planned on persisting the state instead of augmenting the LaunchMode. - The fullscreen/maximized saving isn't perfect because we don't have a way to save the non-maximized/fullscreen size, so exiting the modes won't restore whatever the previous size was. References #9800 Closes #11878 Closes #11426
claunia added the pull-request label 2026-01-31 09:31:03 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28832