Skip to content

Command Palette shows redundant commands for current context #71925

@kjnanda

Description

@kjnanda

Description

When using the Command Palette, commands for navigating to the current screen/context are still displayed.

For example:
If you are already in the Navigation screen, the Command Palette still suggests “Go to Navigation.”
Similarly, in other screens (e.g., Posts, Pages, Templates, Dashboard), “Go to [current screen]” is listed as an option.

This creates unnecessary noise and reduces the usefulness of the Command Palette by showing actions that have no effect.

Steps to Reproduce

  1. Goto admin/editor area in your site.
  2. Navigate to a specific area, e.g., Navigation.
  3. Open the Command Palette (Cmd + K / Ctrl + K).
  4. Search for “Navigation."

Actual Behavior

The palette suggests “Go to Navigation,” even though the user is already there.

Expected Behavior

Commands to navigate to the current context should be hidden or deprioritised, as they are redundant.

Environment

  • WordPress site setup with Gutenberg 21.5+
  • Browsr: Chrome

Impact :

  • Adds visual clutter.
  • May confuse users who expect results to be context-aware.

Screencap

cmd.palette.-.context.issue.mov

@t-hamano Due to limited access to the repo, I can not tag the issue, but this is not a bug; it is something we can consider as an improvement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions