Open adamziel opened 2 years ago
It's also important to figure out the interaction with containers. Oftentimes in design software, the container must be fully inside the selection box for it to be included, otherwise its children are selected.
It'd be good to revisit this. I'd consider trying it in select mode only at first.
Definitely think would make select mode a lot more useful. Any Craft fans here? It has a pretty nice implementation of this. It feels very natural to press Esc to enter visual mode, make a selection, do something (transform, delete, indent, group), then click twice to go back to edit mode.
https://user-images.githubusercontent.com/612155/176335591-5e6d5c4a-49cc-4a00-83a4-e8070ecc70de.mp4
Admittedly our needs are a lot more complex though as we support nested blocks as @jameskoster says.
Hey @adamziel. I run into this issue while looking for something different I believe this has already been implemented, right?. I recorded a video of how it is now possible to select multiple blocks just by clicking and dragging:
https://user-images.githubusercontent.com/4452464/227868108-44dcf332-11f1-4aab-b604-8654595735c1.mp4
Would this make sense? Were you referring to this?
Interestingly enough, @mtias suggested implementing this in "select" mode first but we went the opposite route.
@mrfoxtalbot kind of, it's not the same visual rectangular selection and it wouldn't do that well in a visual mode where editing is disabled
Related: #23290
Selecting multiple blocks by drag&drop seems like a natural interaction to have:
https://user-images.githubusercontent.com/205419/134696866-22aaf33a-acd7-4a5c-bcd2-eaa574391544.mp4
The idea was initially explored in a quick&dirty way in https://github.com/WordPress/gutenberg/pull/35117. The PR is closed now in favor of this issue. It is worth noting that @jasmussen proposed with a number of great improvements there:
cc @jasmussen @tellthemachines @talldan @noisysocks @ellatrix @talldan @getdave @kevin940726 @javierarce @draganescu