Add hotkeys for switching to the left / right adjacent tab besides ctrl-tab #17501

Closed
opened 2026-01-31 05:44:25 +00:00 by claunia · 1 comment
Owner

Originally created by @ZYinMD on GitHub (May 18, 2022).

Description of the new feature/enhancement

Correct me if I'm wrong, but when Settings > Interaction > Tab switcher style is set to "most recently used order", there seems to be no way to use keyboard to switch to left / right adjacent tabs.

In traditional tabbed apps (e.g. browsers), Ctrl-PgUp, Ctrl-PgDn, Ctrl-Tab, Ctrl-Shift-Tab are usually 4 separate hotkeys. WT seems to have only 2. I think we should have 4 too.

Originally created by @ZYinMD on GitHub (May 18, 2022). # Description of the new feature/enhancement Correct me if I'm wrong, but when `Settings > Interaction > Tab switcher style` is set to "most recently used order", there seems to be no way to use keyboard to switch to left / right adjacent tabs. In traditional tabbed apps (e.g. browsers), Ctrl-PgUp, Ctrl-PgDn, Ctrl-Tab, Ctrl-Shift-Tab are usually 4 separate hotkeys. WT seems to have only 2. I think we should have 4 too.
Author
Owner

@zadjii-msft commented on GitHub (May 19, 2022):

You actually can customize the nextTab/prevTab actions


        {
            "command": 
            {
                "action": "nextTab",
                "tabSwitcherMode": "inOrder"
            },
            "keys": "f10",
        },
        {
            "command":
            {
                "action": "prevTab",
                "tabSwitcherMode": "inOrder"
            },
            "keys": "f9",
        },

"tabSwitcherMode": "inOrder" will tell the Terminal to use in-order switching even if you have MRU switching as the global default.

@zadjii-msft commented on GitHub (May 19, 2022): You actually can customize the [`nextTab`/`prevTab` actions ](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#open-next-tab) ```jsonc { "command": { "action": "nextTab", "tabSwitcherMode": "inOrder" }, "keys": "f10", }, { "command": { "action": "prevTab", "tabSwitcherMode": "inOrder" }, "keys": "f9", }, ``` `"tabSwitcherMode": "inOrder"` will tell the Terminal to use in-order switching even if you have MRU switching as the global default.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17501