-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Make it easier to insert Block Pattern with keyboard #59513
Comments
Hey there! This came up previously in this issue that was later closed: #26116 Right now, you can search for patterns you've created using the slash inserter by searching for the name. I'd recommend closing this out as a result as the functionality it seems you want (to insert block patterns with a keyboard) exists unless I'm missing something. I'll await to hear back :) |
I personally still think this would be useful. I never remember the name of a pattern and find myself trying to type |
I'd love to see this as well. Currently, it seems like patterns are only surfaced in the quick inserter if they are created by the user in the editor and stored in the database. Unless I'm missing something, patterns included in the theme (whether in I'd propose that theme patterns be included in the quick inserter by default, unless the pattern is set to Edit: It seems a lot of this was already covered in #26116. After reading that discussion, I think the opt-in solution is a good compromise, since it would allow the theme developer to decide if it makes sense to include a pattern in the quick inserter or not. Full page layouts probably shouldn't be listed in the quick inserter, but there's a case to be made for including simpler content patterns. |
I think opt-in for individual php-based patterns is the way to go, if at all. My fear is that developers won't use it responsibly or tactfully. I see lots of theme developers talking about the massive volume of patterns their themes ship with, and it could easily overload the quick inserter. |
What problem does this address?
It's pretty easy to add most blocks while typing, by typing stuff like /heading. I'd love to be able to trigger the Pattern inserter in a similar way.
What is your proposed solution?
I have two proposed solutions, and I think both can co-exist.
I think that "Pattern" should be one of the autocomplete things in the popup that appears when you hit / and start typing "pattern". Upon selecting it, it would launch the pattern viewer dialog. This thing:
There could also be a standard keyboard shortcut for popping open the pattern inserter dialog.
The text was updated successfully, but these errors were encountered: