-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add commands to the command palette #164
Comments
I'm going to pick this one up. |
Thank you @justintadlock for stepping up to the plate! 👏 |
I think, at least for now, I'm going to stick with the basics as outlined by @richtabor in the topic proposal with If we want to follow this up with a more advanced tutorial, we can always do a part 2. |
Test repo here: https://github.com/justintadlock/dev-blog-command-palette-api |
Google Doc where I'll draft this tutorial: https://docs.google.com/document/d/1NJDxYNzafY8Dxk-ASh_PlgjRIcjbxAKUWykYts4ywPs/edit?usp=sharing |
This draft is now ready for review: https://docs.google.com/document/d/1NJDxYNzafY8Dxk-ASh_PlgjRIcjbxAKUWykYts4ywPs/edit?usp=sharing |
@justintadlock It's a great introduction to the Commands API! Thank you! I test all examples. Apart from the missing |
Published! Social Copy:
|
Ah, it looks like that's an issue on the Site Editor when accessing that via the hook. I didn't think to test it there since the normal action function works. Anyway, it's corrected in the post with a check for |
Social post scheduled. |
Discussed in #157
Originally posted by richtabor August 14, 2023
We have this resource here, but it's highly technical (as it should be).
I think having a guide with a few types of commands would be nice. Like a command to toggle on a block editor preference, go to an external help guide article, open a plugin sidebar, etc. Even commands to open up internal admin pages; like a host adding a command to view hosting config, or builders adding a command to open another plugin's admin page, etc.
Not only to show how, but give ideas on what folks can add commands for. Inspire a bit.
It doesn't have to be complex, perhaps simple like how we write about block style variations.
What's the easiest way for existing plugins to add commands to the command palette?
The text was updated successfully, but these errors were encountered: