[PR #7935] Swap the command palette modes for the prefix > #27029

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

Original Pull Request: https://github.com/microsoft/terminal/pull/7935

State: closed
Merged: Yes


Summary of the Pull Request

VsCode uses > as its "prefix" for the equivalent of their "action mode". This PR aligns the Terminal with their logic here.
cmdpal-swapped-prefix-000

PR Checklist

Detailed Description of the Pull Request / Additional comments

We have to be tricky - if we use the > in the actual input as the indicator for action mode, we can't display any placeholder text in the input to tell users to type a command. This wasn't an issue for the commandline mode previously, because we'd stick the "prompt" in the "no matches text" space. However, we can't do that for action mode. Instead, we'll stick a floating text block over the input box, and when the user's in action mode, we'll manually place a > into that space. When the user backspaces the >, we'll remove it from that block, and switch into commandline mode.

Validation Steps Performed

Played with the cmdpal in lots of different modes, this finally feels good

**Original Pull Request:** https://github.com/microsoft/terminal/pull/7935 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request VsCode uses `>` as its "prefix" for the equivalent of their "action mode". This PR aligns the Terminal with their logic here. ![cmdpal-swapped-prefix-000](https://user-images.githubusercontent.com/18356694/96163804-fbcdda80-0edf-11eb-8748-9c4e62bb2016.gif) ## PR Checklist * [x] Closes #7736 * [x] I work here * [ ] Tests added/passed * [ ] Oh gawrsh, all the gifs on the [CmdPal docs](https://docs.microsoft.com/en-us/windows/terminal/command-palette) will need to be updated, won't they ## Detailed Description of the Pull Request / Additional comments We have to be tricky - if we use the `>` in the actual input as the indicator for action mode, we can't display any placeholder text in the input to tell users to type a command. This wasn't an issue for the commandline mode previously, because we'd stick the "prompt" in the "no matches text" space. However, we can't do that for action mode. Instead, we'll stick a floating text block over the input box, and when the user's in action mode, we'll manually place a `>` into that space. When the user backspaces the `>`, we'll remove it from that block, and switch into commandline mode. ## Validation Steps Performed Played with the cmdpal in lots of different modes, this finally feels good
claunia added the pull-request label 2026-01-31 09:19:35 +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#27029