List view: Trigger rename block on double click
Description
Right now, to rename blocks, the user needs to right-click the block and then click on rename. It would be nice to keep that, but also trigger the rename modal when double-clicking on blocks (in the list view context). This is a typical pattern found in different software programs, such as Figma, when renaming layers.
This can enhance the creation experience, and reduce the friction when trying to rename several elements.
https://github.com/user-attachments/assets/1b977924-54cf-47d5-8a1a-9f94933da9b5
Thought I'd drop a link to the previous exploration around this - Rename blocks in the Editor via Inline Editing in List View.
There was some accessibility feedback regarding the inline editing that proved to be difficult to resolve. Some of the feedback seems to mention that launching the rename modal from a double click would be ok, so perhaps that's still an option.
Thanks for sharing, @talldan - I remember going through that discussion, and in my opinion, that was the best solution. Or at least, the one I preferred as it uses a typical pattern we see in macOS, Figma, and many other places. It's a pity that it couldn't land.
Still, with what we currently have, I believe we should address a solution for the pain point when trying to rename several items. In that sense, and given the a11y constraints we faced with the other solution, I feel we could improve it by triggering the rename modal with double-click.
I think this might conflict with #64625. Preserving double click for renaming was also suggested in the associated PR #64641. A decision needs to be made for which feature the "double-click" is reserved in the List View.
There's also a proposal to add a shortcut for block renaming - #62152.
Thanks for sharing and connecting the dots, @Mamaduka!
I agree with some of the comments in that PR—I think the natural expectation for a double-click action would be renaming. We already have several ways to expand and collapse blocks: using the right and left arrow keys on the keyboard, or clicking directly on the arrow with the mouse.
On the other hand, renaming a block is currently a bit tricky, requiring several clicks and lacking a keyboard shortcut. For that reason, I’d lean toward reserving double-click for renaming.
I would love to see a feature where double click on the label let me quickly rename it. I have found that when I have very lengthly posts the list view is too cluttered and I always end up using group blocks to group sections of the post together, then renaming the groups to something that identifies the content. This would be such a welcome time saver.