Exploration: Supporting command types and filtered searching #53190
Labels
[Package] Commands
/packages/commands
[Type] Comand Palette
[Type] Enhancement
A suggestion for improvement.
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 thedocumentation
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
The text was updated successfully, but these errors were encountered: