Skip to content
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: Enable multiple block selection using CMD + Click #37514

Closed
mrfoxtalbot opened this issue Dec 19, 2021 · 5 comments · Fixed by #38314
Closed

List View: Enable multiple block selection using CMD + Click #37514

mrfoxtalbot opened this issue Dec 19, 2021 · 5 comments · Fixed by #38314
Assignees
Labels
[Feature] Block Multi Selection The ability to select and manipulate multiple blocks [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Type] Enhancement A suggestion for improvement.

Comments

@mrfoxtalbot
Copy link

What problem does this address?

It is currently possible to select multiple blocks in the list view by pressing "Shift + UP" and "Shift + DOWN":

Kapture 2021-12-19 at 23 52 56-

The problem is that if you are trying to select a lot of blocks, it can take a while to select all of them.

What is your proposed solution?

I would like to select multiple adjacent blocks by using holding down CMD and clicking, which I tried but did not seem to work with Gutenberg v12.0.2

Kapture 2021-12-19 at 23 52 34

This multiple selecting by CMD+click style does work when used to select blocks in the editor itself, just not in the List View:

Kapture 2021-12-20 at 00 10 59

@mrfoxtalbot mrfoxtalbot added [Type] Enhancement A suggestion for improvement. [Feature] List View Menu item in the top toolbar to select blocks from a list of links. labels Dec 19, 2021
@mtias
Copy link
Member

mtias commented Dec 20, 2021

List View also should support drag and drop for multi-selections. cc @priethor for tracking with list view improvements.

@richtabor
Copy link
Member

I came here to make an issue on just this.

A common use case is to select multiple blocks and wrap them in a core/group block.

@andrewserong andrewserong added the [Feature] Block Multi Selection The ability to select and manipulate multiple blocks label Jan 21, 2022
@andrewserong andrewserong self-assigned this Jan 28, 2022
@andrewserong
Copy link
Contributor

Just assigning myself to this one — I've made a start in a draft PR (#38314) that I'll continue on with next week. To begin with, I'm focusing on just adding in the Shift key behaviour for multi-selection. Longer-term it might be nice to look into adding CMD-click for selecting non-adjacent blocks at the same time, but I think that'll likely be a bit more complex to implement since our existing multiSelect action assumes a contiguous set of blocks within the selection.

@andrewserong
Copy link
Contributor

The PR to add multi-select to the list view via the SHIFT key is ready for review / feedback now, if folks would like to give it a test! (#38314)

@mtias
Copy link
Member

mtias commented Feb 26, 2022

Nice work @andrewserong and thanks for the suggestion @mrfoxtalbot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block Multi Selection The ability to select and manipulate multiple blocks [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants