Skip to content

Pinned Favorite Commands in Nx Console (Including nx run target) #2973

@lukassh-7

Description

@lukassh-7

Description

Add support for pinning a small number of favorite commands or targets (e.g. up to 5) in Nx Console so they are always visible at the top of the Commands / Generate views and directly accessible from the nx run target shortcut.

While Nx Console already supports common commands, there is currently no way to surface those (or any custom selection) at the top of the nx run target menu, which is one of the most frequently used entry points.

Pinned favorites should persist across sessions and behave similarly to “starred” or “favorite” actions in other IDE tools.


Motivation

I’m aware of the existing common commands feature, which is useful and already solves part of the problem.
However, when using the nx run target shortcut, I don’t see any option to:

  • Reuse common commands there, or
  • Display a custom set of frequently used targets at the top of the list

As a result, even very common workflows still require repetitive searching or navigation.

Allowing users to pin commands or targets and have them appear at the top of the nx run target menu would:

  • Greatly speed up daily workflows
  • Reduce friction in large monorepos
  • Make the nx run target shortcut significantly more powerful
  • Complement (not replace) the existing common commands feature

Suggested Implementation

  • Allow users to star / pin a command or target from:
    • The Commands list
    • The nx run target picker
  • Pinned items appear in a dedicated “Favorites” section at the top of:
    • The Commands view
    • The nx run target shortcut UI
  • Limit the number of pinned items (e.g. max 5) to keep the UI focused.
  • Persist favorites per workspace using extension storage.
  • Favorites should remain visible regardless of sorting or filtering.

Alternate Implementations

  • Extend the existing common commands concept so it also applies to the nx run target menu.
  • Allow defining pinned commands or targets via settings.json.
  • Introduce a lightweight “Quick Run” section dedicated to pinned items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributions welcomeWe'd love to collaborate with the community on thistype: featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions