Skip to content

Exploration: Supporting command types and filtered searching #53190

@richtabor

Description

@richtabor

It may be interesting to explore a method of registering a command type, and supporting a method to filter a via that type—perhaps based on an input prefix.

In this exploration below, if you type "?" into the input, you would see all available documentation type commands. Typing a search query afterwards would the filter the results by the input value and the documentation type. This would allow for helpful documentation links within the WordPress experience, while not overwhelming the existing editor interface.

Plugins should also be able to register commands within a specific type (just like how pattern categories work). In the example I have a link that could be registered via the Gutenberg plugin (fetching the version number perhaps), which links to the latest news on Gutenberg. Third-party plugins could add help documentation; hosts even.

Visuals

help-commands searching

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