-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
List view: Rename block on double-click #68744
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +59 B (0%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
Thanks for looking 🙌 This is an alternative PR, with the key difference being that it restricts renaming to list view items that actually have the option to be renamed. It's also using the latest changes in the rename component. That said, we can absolutely move forward with the other PR if preferred. |
Don't have a strong opinion, but I guess we can continue working on the feature here. Why?
Let's make sure we give @rinkalpagdar props when this is merged. |
packages/block-editor/src/components/list-view/block-select-button.js
Outdated
Show resolved
Hide resolved
Thanks, George! Sounds good to me 🫡 |
I want to confirm that the change to what happens when you use the Enter key was removed? Since this affects how you add new paragraphs. |
@carolinan, yes, I believe it was removed in 38c3927. The PR should focus on updating the "double-click" behavior, and any other "shortcuts" for renaming should be discussed separately. |
Hi @carolinan, yes, that was removed so we can revisit and discuss it when deciding on shortcuts and keyboard actions. However, it wasn’t affecting how new paragraphs were added. Pressing “Enter” to rename only worked after a second click in the list view to select the block itself. You can check in trunk that after selecting the block with two clicks, pressing “Enter” doesn’t add a new paragraph. |
What?
Fixes #66829
Adding the functionality to rename blocks on double click for the list view.
Why?
Renaming a block is currently a bit tricky, requiring several clicks and lacking a keyboard shortcut.
How?
Including the rename modal on double click and adding the ability to rename blocks on double-click.
Testing Instructions
Screenshots or screencast
rename-list-view.mp4