[PR #13504] [MERGED] Make cmd palette 'go back' button return to previously selected action #29587

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13504
Author: @JerBast
Created: 7/14/2022
Status: ✅ Merged
Merged: 7/19/2022
Merged by: @undefined

Base: main ← Head: 13457


📝 Commits (2)

  • 40f4a34 Make cmd palette 'go back' button return to previous action
  • 38951a0 Move 'current nested command' generation to separate function

📊 Changes

2 files changed (+48 additions, -14 deletions)

View changed files

📝 src/cascadia/TerminalApp/CommandPalette.cpp (+46 -14)
📝 src/cascadia/TerminalApp/CommandPalette.h (+2 -0)

📄 Description

The behaviour of the 'go back' button in the command palette was changed to return to the previously selected element rather than the root.

Instead of returning to the root, the go back button now returns to the previously selected item in the filtered action list. The previously selected item is selected by default and the view is scoped to the item.

Validation Steps Performed

Manually tested by going back and forth between nested actions in the command palette.

Closes #13457


🔄 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/13504 **Author:** [@JerBast](https://github.com/JerBast) **Created:** 7/14/2022 **Status:** ✅ Merged **Merged:** 7/19/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `13457` --- ### 📝 Commits (2) - [`40f4a34`](https://github.com/microsoft/terminal/commit/40f4a34a60c744e577b3321bd0b60e1f801fa920) Make cmd palette 'go back' button return to previous action - [`38951a0`](https://github.com/microsoft/terminal/commit/38951a0f85e27dfd462a0f86f150da666161ee48) Move 'current nested command' generation to separate function ### 📊 Changes **2 files changed** (+48 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/CommandPalette.cpp` (+46 -14) 📝 `src/cascadia/TerminalApp/CommandPalette.h` (+2 -0) </details> ### 📄 Description The behaviour of the 'go back' button in the command palette was changed to return to the previously selected element rather than the root. Instead of returning to the root, the go back button now returns to the previously selected item in the filtered action list. The previously selected item is selected by default and the view is scoped to the item. ## Validation Steps Performed Manually tested by going back and forth between nested actions in the command palette. Closes #13457 --- <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:46 +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#29587