[PR #11046] [MERGED] Maintain zoom when moving focus #28374

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11046
Author: @Rosefield
Created: 8/26/2021
Status: Merged
Merged: 9/2/2021
Merged by: @undefined

Base: mainHead: feature/gh7215-keep-zooming


📝 Commits (3)

  • 6af01d7 Maintain zoom when moving focus
  • 0c1665b RIP ActualSize navigation Jul 2021 - Aug 2021
  • 90af72a Make everything const.

📊 Changes

5 files changed (+82 additions, -115 deletions)

View changed files

📝 src/cascadia/TerminalApp/Pane.cpp (+47 -77)
📝 src/cascadia/TerminalApp/Pane.h (+4 -2)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+0 -1)
📝 src/cascadia/TerminalApp/TerminalTab.cpp (+30 -35)
📝 src/cascadia/TerminalApp/TerminalTab.h (+1 -0)

📄 Description

Summary of the Pull Request

Make it so you can navigate pane focus without unzooming.

PR Checklist

  • Closes Support Azure Cloud Shell Code Editor in Windows Terminal (#7215)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

  • Slight refactor to bring the MRU pane logic into the NavigateDirection function
  • The actual zoom behavior was not a problem, the only issue is that because most of the panes weren't in the UI tree I had to disable using the actual sizes. There is nothing wrong with that, since the synthetic sizing is required anyways, but I'm curious what other peoples' thoughts are.

Validation Steps Performed

output


🔄 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/11046 **Author:** [@Rosefield](https://github.com/Rosefield) **Created:** 8/26/2021 **Status:** ✅ Merged **Merged:** 9/2/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `feature/gh7215-keep-zooming` --- ### 📝 Commits (3) - [`6af01d7`](https://github.com/microsoft/terminal/commit/6af01d7270051adb5a34719b16c9aa94862b5b44) Maintain zoom when moving focus - [`0c1665b`](https://github.com/microsoft/terminal/commit/0c1665b77477c8f021e2a84bea86e079d003fc3d) RIP ActualSize navigation Jul 2021 - Aug 2021 - [`90af72a`](https://github.com/microsoft/terminal/commit/90af72a357329d4e5d6590009b755d460bf20cae) Make everything const. ### 📊 Changes **5 files changed** (+82 additions, -115 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Pane.cpp` (+47 -77) 📝 `src/cascadia/TerminalApp/Pane.h` (+4 -2) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+0 -1) 📝 `src/cascadia/TerminalApp/TerminalTab.cpp` (+30 -35) 📝 `src/cascadia/TerminalApp/TerminalTab.h` (+1 -0) </details> ### 📄 Description <!-- 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 Make it so you can navigate pane focus without unzooming. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #7215 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments - Slight refactor to bring the MRU pane logic into the `NavigateDirection` function - The actual zoom behavior was not a problem, the only issue is that because most of the panes weren't in the UI tree I had to disable using the actual sizes. There is nothing wrong with that, since the synthetic sizing is required anyways, but I'm curious what other peoples' thoughts are. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed ![output](https://user-images.githubusercontent.com/6185249/130901911-91676da2-db40-412d-b726-61a3f559ae17.gif) --- <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:28:07 +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#28374