[PR #10927] [MERGED] GH10909 in order movement #28306

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10927
Author: @Rosefield
Created: 8/12/2021
Status: Merged
Merged: 8/16/2021
Merged by: @undefined

Base: mainHead: feature/gh10909-in-order-movement


📝 Commits (4)

  • bfd982d GH10909 add in order movement. Refactor FocusPane/SwapPane to have a shared NavigateDirection function.
  • 7f19f31 Merge remote-tracking branch 'origin/main' into feature/gh10909-in-order-movement
  • 130a4b2 Fix comments about return values that now return bools.
  • d9f8b90 I guess I added a tab somehow?

📊 Changes

15 files changed (+310 additions, -156 deletions)

View changed files

📝 doc/cascadia/profiles.schema.json (+5 -3)
📝 src/cascadia/TerminalApp/AppActionHandlers.cpp (+2 -2)
📝 src/cascadia/TerminalApp/AppCommandlineArgs.cpp (+11 -16)
📝 src/cascadia/TerminalApp/Pane.cpp (+216 -108)
📝 src/cascadia/TerminalApp/Pane.h (+16 -12)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+8 -3)
📝 src/cascadia/TerminalApp/TerminalPage.h (+1 -1)
📝 src/cascadia/TerminalApp/TerminalTab.cpp (+19 -7)
📝 src/cascadia/TerminalApp/TerminalTab.h (+1 -1)
📝 src/cascadia/TerminalSettingsModel/ActionArgs.cpp (+8 -0)
📝 src/cascadia/TerminalSettingsModel/ActionArgs.idl (+3 -1)
📝 src/cascadia/TerminalSettingsModel/JsonUtils.h (+1 -1)
📝 src/cascadia/TerminalSettingsModel/Resources/en-US/Resources.resw (+12 -0)
📝 src/cascadia/TerminalSettingsModel/TerminalSettingsSerializationHelpers.h (+3 -1)
📝 src/cascadia/TerminalSettingsModel/defaults.json (+4 -0)

📄 Description

Adds new in-order traversal for MoveFocus and SwapPane actions.
Refactors the Pane methods to share a NavigateDirection
implementation.

Closes #10909

A large amount of the churn here is just renaming some of the things for
directional movement to reflect that it might not always be based on the
focused pane. NextPane and PreviousPane are the functions that
actually select the next/previous pane respectively and are the core
component of this PR.

VALIDATION
Created multiple panes on a tab, and tried both forward and backwards
movements with move-focus and swap-pane.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10927 **Author:** [@Rosefield](https://github.com/Rosefield) **Created:** 8/12/2021 **Status:** ✅ Merged **Merged:** 8/16/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `feature/gh10909-in-order-movement` --- ### 📝 Commits (4) - [`bfd982d`](https://github.com/microsoft/terminal/commit/bfd982dcbe52f536dd35715b96432c660c990fc4) GH10909 add in order movement. Refactor FocusPane/SwapPane to have a shared NavigateDirection function. - [`7f19f31`](https://github.com/microsoft/terminal/commit/7f19f31dc45191c6663f4ba78ec4c7902f88fbd4) Merge remote-tracking branch 'origin/main' into feature/gh10909-in-order-movement - [`130a4b2`](https://github.com/microsoft/terminal/commit/130a4b272540fa6f475286cf551e01d464229f44) Fix comments about return values that now return bools. - [`d9f8b90`](https://github.com/microsoft/terminal/commit/d9f8b90f82114fe3315b1d85eff106a86c03433d) I guess I added a tab somehow? ### 📊 Changes **15 files changed** (+310 additions, -156 deletions) <details> <summary>View changed files</summary> 📝 `doc/cascadia/profiles.schema.json` (+5 -3) 📝 `src/cascadia/TerminalApp/AppActionHandlers.cpp` (+2 -2) 📝 `src/cascadia/TerminalApp/AppCommandlineArgs.cpp` (+11 -16) 📝 `src/cascadia/TerminalApp/Pane.cpp` (+216 -108) 📝 `src/cascadia/TerminalApp/Pane.h` (+16 -12) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+8 -3) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+1 -1) 📝 `src/cascadia/TerminalApp/TerminalTab.cpp` (+19 -7) 📝 `src/cascadia/TerminalApp/TerminalTab.h` (+1 -1) 📝 `src/cascadia/TerminalSettingsModel/ActionArgs.cpp` (+8 -0) 📝 `src/cascadia/TerminalSettingsModel/ActionArgs.idl` (+3 -1) 📝 `src/cascadia/TerminalSettingsModel/JsonUtils.h` (+1 -1) 📝 `src/cascadia/TerminalSettingsModel/Resources/en-US/Resources.resw` (+12 -0) 📝 `src/cascadia/TerminalSettingsModel/TerminalSettingsSerializationHelpers.h` (+3 -1) 📝 `src/cascadia/TerminalSettingsModel/defaults.json` (+4 -0) </details> ### 📄 Description Adds new in-order traversal for MoveFocus and SwapPane actions. Refactors the Pane methods to share a `NavigateDirection` implementation. Closes #10909 A large amount of the churn here is just renaming some of the things for directional movement to reflect that it might not always be based on the focused pane. `NextPane` and `PreviousPane` are the functions that actually select the next/previous pane respectively and are the core component of this PR. VALIDATION Created multiple panes on a tab, and tried both forward and backwards movements with move-focus and swap-pane. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:27:41 +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#28306