[PR #13547] [MERGED] Add action for closing all unfocused panes #29617

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13547
Author: @JerBast
Created: 7/20/2022
Status: Merged
Merged: 8/26/2022
Merged by: @undefined

Base: mainHead: 12216


📝 Commits (7)

  • 11bba27 Add action for closing all unfocused panes
  • f550bd5 Play closing animation when other panes are being closed
  • f405ce0 Add suggested changes and resolve other panes not being closed when read-only pane is kept
  • 48b7b03 Merge branch 'main' of github.com:JerBast/terminal into 12216
  • f9ad9f2 Change _CloseUnfocusedPanes to _ClosePanes; mark args as unhandled when there are no unfocused panes
  • 73f02ef Ignore read-only panes while performing close other panes action
  • f5a1347 Replace single-level read-only check with multi-level read-only check

📊 Changes

10 files changed (+216 additions, -112 deletions)

View changed files

📝 doc/cascadia/profiles.schema.json (+1 -0)
📝 src/cascadia/TerminalApp/AppActionHandlers.cpp (+34 -0)
📝 src/cascadia/TerminalApp/Pane.cpp (+3 -0)
📝 src/cascadia/TerminalApp/Pane.h (+1 -0)
📝 src/cascadia/TerminalApp/TabManagement.cpp (+93 -38)
📝 src/cascadia/TerminalApp/TerminalPage.h (+3 -0)
📝 src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp (+2 -0)
📝 src/cascadia/TerminalSettingsModel/AllShortcutActions.h (+75 -74)
📝 src/cascadia/TerminalSettingsModel/Resources/en-US/Resources.resw (+3 -0)
📝 src/cascadia/TerminalSettingsModel/defaults.json (+1 -0)

📄 Description

This PR introduces a new action for closing all unfocused / other panes within a tab.

Edit (17-08-2022): Read-only panes are ignored when this action is being used (i.e., left open).

gif

Validation Steps Performed

The action was manually tested by applying it to various 'compositions' of panes. This includes tests on read-only panes.

Closes #12216


🔄 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/13547 **Author:** [@JerBast](https://github.com/JerBast) **Created:** 7/20/2022 **Status:** ✅ Merged **Merged:** 8/26/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `12216` --- ### 📝 Commits (7) - [`11bba27`](https://github.com/microsoft/terminal/commit/11bba273159ef1d75ea7a300219b5f35ce887af7) Add action for closing all unfocused panes - [`f550bd5`](https://github.com/microsoft/terminal/commit/f550bd5f5c85755cb6e4000d753943f862a06e71) Play closing animation when other panes are being closed - [`f405ce0`](https://github.com/microsoft/terminal/commit/f405ce008e5185de203aeb0c97d6fadff7ad607e) Add suggested changes and resolve other panes not being closed when read-only pane is kept - [`48b7b03`](https://github.com/microsoft/terminal/commit/48b7b031023ee3f1923a98c403a76fe9e28a7dea) Merge branch 'main' of github.com:JerBast/terminal into 12216 - [`f9ad9f2`](https://github.com/microsoft/terminal/commit/f9ad9f271857e0c3c6971bcfba066d4a8f182e53) Change _CloseUnfocusedPanes to _ClosePanes; mark args as unhandled when there are no unfocused panes - [`73f02ef`](https://github.com/microsoft/terminal/commit/73f02eff164085d4583e50932561c1645f3d50bb) Ignore read-only panes while performing close other panes action - [`f5a1347`](https://github.com/microsoft/terminal/commit/f5a1347b979960eb78bae16589a13544f21eaab6) Replace single-level read-only check with multi-level read-only check ### 📊 Changes **10 files changed** (+216 additions, -112 deletions) <details> <summary>View changed files</summary> 📝 `doc/cascadia/profiles.schema.json` (+1 -0) 📝 `src/cascadia/TerminalApp/AppActionHandlers.cpp` (+34 -0) 📝 `src/cascadia/TerminalApp/Pane.cpp` (+3 -0) 📝 `src/cascadia/TerminalApp/Pane.h` (+1 -0) 📝 `src/cascadia/TerminalApp/TabManagement.cpp` (+93 -38) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+3 -0) 📝 `src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp` (+2 -0) 📝 `src/cascadia/TerminalSettingsModel/AllShortcutActions.h` (+75 -74) 📝 `src/cascadia/TerminalSettingsModel/Resources/en-US/Resources.resw` (+3 -0) 📝 `src/cascadia/TerminalSettingsModel/defaults.json` (+1 -0) </details> ### 📄 Description This PR introduces a new action for closing all unfocused / other panes within a tab. **Edit (17-08-2022):** Read-only panes are ignored when this action is being used (i.e., left open). ![gif](https://user-images.githubusercontent.com/27634653/180733229-0c8e6427-c586-4fe1-b6fd-a2b1c94734e5.gif) ## Validation Steps Performed The action was manually tested by applying it to various 'compositions' of panes. This includes tests on read-only panes. Closes #12216 --- <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:35:56 +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#29617