-
Notifications
You must be signed in to change notification settings - Fork 237
Description
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 targetshortcut 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 targetpicker
- Pinned items appear in a dedicated “Favorites” section at the top of:
- The Commands view
- The
nx run targetshortcut 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 targetmenu. - Allow defining pinned commands or targets via
settings.json. - Introduce a lightweight “Quick Run” section dedicated to pinned items.