[PR #7321] Provide global setting to use ATS for nextTab and prevTab #26892

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

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

State: closed
Merged: Yes


Summary of the Pull Request

This PR splits the anchored and unanchored tab switcher into two. The anchored tab switcher is now baked into nextTab/prevTab, and the unanchored tab switcher command is just named tabSearch. tabSearch takes no arguments. To reflect this distinction, CommandPalette.cpp now refers to one as TabSwitchMode and the other as TabSearchMode.

I've added a global setting named useTabSwitcher (name up for debate) that makes the Terminal use the anchored tab switcher experience for nextTab and prevTab.

I've also given the control the ability to detect Alt KeyUp events and to dispatch keybinding events. By listening for keybindings, the ATS can react to nextTab/prevTab invocations for navigation in addition to listening for tab and the arrow keys.

Closes #7178

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7321 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This PR splits the anchored and unanchored tab switcher into two. The anchored tab switcher is now baked into `nextTab`/`prevTab`, and the unanchored tab switcher command is just named `tabSearch`. `tabSearch` takes no arguments. To reflect this distinction, `CommandPalette.cpp` now refers to one as `TabSwitchMode` and the other as `TabSearchMode`. I've added a global setting named `useTabSwitcher` (name up for debate) that makes the Terminal use the anchored tab switcher experience for `nextTab` and `prevTab`. I've also given the control the ability to detect <kbd>Alt</kbd> KeyUp events and to dispatch keybinding events. By listening for keybindings, the ATS can react to `nextTab`/`prevTab` invocations for navigation in addition to listening for <kbd>tab</kbd> and the arrow keys. Closes #7178 <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] CLA signed. * [x] Documentation updates: microsoftdocs/terminal#107 * [x] Schema updated.
claunia added the pull-request label 2026-01-31 09:18:45 +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#26892