[PR #7802] Add functionality to open the Settings UI tab through openSettings #27003

Closed
opened 2026-01-31 09:19:25 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


This PR's goal was to add an option to the OpenSettings keybinding to open the Settings UI in a tab. In order to implement that, a couple of changes had to be made to Tab, specifically:

  • Introduce a tab interface named ITab
  • Create/Rename two new Tab classes that implement ITab called SettingsTab and TerminalTab

I've also put some TODOs that I wanted to get some thoughts on - I'll make a follow up PR but perhaps they can be revisited when we flesh out the Settings UI more.

  • Does a Settings UI tab shutdown need to do anything special for cleanup?
  • Does a Settings UI tab need to have GetActiveTitle? Maybe depending on which page in the UI is open?
  • Technically, I can't focus a Grid control, so I'll need to figure out what to Focus when the tab is selected.
  • The Settings UI tab doesn't have a TermControl, so once focus is moved to that tab, users won't be able to nextTab/prevTab out of it (along with all other keybindings).

References #1564, #5915

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7802 **State:** closed **Merged:** Yes --- This PR's goal was to add an option to the `OpenSettings` keybinding to open the Settings UI in a tab. In order to implement that, a couple of changes had to be made to `Tab`, specifically: - Introduce a tab interface named `ITab` - Create/Rename two new Tab classes that implement `ITab` called `SettingsTab` and `TerminalTab` I've also put some `TODOs` that I wanted to get some thoughts on - I'll make a follow up PR but perhaps they can be revisited when we flesh out the Settings UI more. - Does a Settings UI tab shutdown need to do anything special for cleanup? - Does a Settings UI tab need to have `GetActiveTitle`? Maybe depending on which page in the UI is open? - Technically, I can't focus a `Grid` control, so I'll need to figure out what to `Focus` when the tab is selected. - The Settings UI tab doesn't have a `TermControl`, so once focus is moved to that tab, users won't be able to `nextTab/prevTab` out of it (along with all other keybindings). References #1564, #5915
claunia added the pull-request label 2026-01-31 09:19:25 +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#27003