When opened in SUI, Command Palette is full of actions that can't be used in the SUI #13886

Open
opened 2026-01-31 03:54:55 +00:00 by claunia · 2 comments
Owner

Originally created by @zadjii-msft on GitHub (May 24, 2021).

The only complaint I have is that the command palette is filled with some actions that don't do anything (i.e. "split pane"). It'd be nice to filter out the ones that don't do anything, but that's definitely complicated enough to be a follow-up. Mind filing that?

This is me filing that.

We've previously discussed at length having a "context" for where actions are applicable. E.g.

  • copy/paste/find are "control" actions
  • togglePaneZoom is a "pane" or Page level action
  • newTab is a Page? Tabs? level action
  • closeWindow would be a page? level action

So we might need a way of knowing when an action is applicable, so we only show the applicable ones. may also help for code synthesis - for an action that's control level, we may be able to have some common code template for "in the context of the active control, do the thing".

Originally created by @zadjii-msft on GitHub (May 24, 2021). > The only complaint I have is that the command palette is filled with some actions that don't do anything (i.e. "split pane"). It'd be nice to filter out the ones that don't do anything, but that's definitely complicated enough to be a follow-up. Mind filing that? This is me filing that. We've previously discussed at length having a "context" for where actions are applicable. E.g. * copy/paste/find are "control" actions * togglePaneZoom is a "pane" or Page level action * newTab is a Page? Tabs? level action * closeWindow would be a page? level action So we might need a way of knowing when an action is applicable, so we only show the applicable ones. may also help for code synthesis - for an action that's control level, we may be able to have some common code template for "in the context of the active control, _do the thing_".
claunia added the Issue-TaskNeeds-Tag-FixProduct-TerminalArea-CmdPal labels 2026-01-31 03:54:55 +00:00
Author
Owner

@DHowett commented on GitHub (May 24, 2021):

Do i hear my favorite hobby horse, "a static enum of action scopes", trotting somewhere in the middle distance?

@DHowett commented on GitHub (May 24, 2021): Do i hear my favorite hobby horse, "a static enum of action scopes", trotting somewhere in the middle distance?
Author
Owner

@zadjii-msft commented on GitHub (May 24, 2021):

Do i hear my favorite hobby horse, "a static enum of action scopes", trotting somewhere in the middle distance?

yes that's this one

@zadjii-msft commented on GitHub (May 24, 2021): > Do i hear my favorite hobby horse, "a static enum of action scopes", trotting somewhere in the middle distance? yes that's this one
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13886