moveFocus to panel using cycle #10023

Open
opened 2026-01-31 02:10:26 +00:00 by claunia · 0 comments
Owner

Originally created by @mfeiertag on GitHub (Aug 5, 2020).

Description of the new feature/enhancement

Currently terminal only supports moveFocus to up/down/left/right. This feature would allow cycling through panes like going trough tabs with
{ "command": "nextTab", "keys": "ctrl+tab" }
and
{ "command": "prevTab", "keys": "ctrl+shift+tab" }

Proposed technical implementation details (optional)

New panes get assigned increasing IDs.
{ "command": { "action": "moveFocus", "direction": "next" }, "keys": "ctrl+alt+tab" }
focuses the pane with the next ID
{ "command": { "action": "moveFocus", "direction": "prev" }, "keys": "ctrl+alt+shift+tab" }
focuses the pane with the previous ID

IDs could be in order of creation or in order of last used.

Property Necessity Type Default Description
paneCycleMode Optional String created Defines the order of panes when cycling. Possible values: created or lastUsed

Related to #5803 and #5464
Similar to #4692

Example (pane in focus bold):

Single Pane:
| 1 |
Duplicate pane:
| 1 | | 2 |
Pressing ctrl+alt+tab:
| 1 | | 2 |
Duplicate Pane 1, than pane 2:
| 1 | | 2 |
| 3 | | 4 |
Pressing ctrl+alt+tab would go to pane 1:
| 1 | | 2 |
| 3 | | 4 |
Pressing ctrl+alt+shift+tab would go back to pane 4:
| 1 | | 2 |
| 3 | | 4 |
Pressing ctrl+alt+shift+tab again would go to pane 3:
| 1 | | 2 |
| 3 | | 4 |

Originally created by @mfeiertag on GitHub (Aug 5, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 Currently terminal only supports moveFocus to up/down/left/right. This feature would allow cycling through panes like going trough tabs with ` { "command": "nextTab", "keys": "ctrl+tab" }` and `{ "command": "prevTab", "keys": "ctrl+shift+tab" }` <!-- 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). --> # Proposed technical implementation details (optional) New panes get assigned increasing IDs. `{ "command": { "action": "moveFocus", "direction": "next" }, "keys": "ctrl+alt+tab" }` focuses the pane with the next ID `{ "command": { "action": "moveFocus", "direction": "prev" }, "keys": "ctrl+alt+shift+tab" }` focuses the pane with the previous ID IDs could be in order of creation or in order of last used. | Property | Necessity | Type | Default | Description | | -------- | --------- | ---- | ------- | ----------- | | `paneCycleMode` | Optional | String | `created` | Defines the order of panes when cycling. Possible values: `created` or `lastUsed` | Related to #5803 and #5464 Similar to #4692 ### Example (pane in focus bold): Single Pane: | **1** | Duplicate pane: | 1 | | **2** | Pressing ctrl+alt+tab: | **1** | | 2 | Duplicate Pane 1, than pane 2: | 1 | | 2 | | 3 | | **4** | Pressing ctrl+alt+tab would go to pane 1: | **1** | | 2 | | 3 | | 4 | Pressing ctrl+alt+shift+tab would go back to pane 4: | 1 | | 2 | | 3 | | **4** | Pressing ctrl+alt+shift+tab again would go to pane 3: | 1 | | 2 | | **3** | | 4 | <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 02:10:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10023