-
Notifications
You must be signed in to change notification settings - Fork 719
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
Add a bulk delete feature #3840
Comments
@walterbender sir, what're your thoughts on this? |
I've wondered about a good way to do this for some time. Maybe some sort of select-all or select with shift or ctrl. |
what I have in my mind is selecting something like this (left-click+drag) and then pressing the delete button ( on the keyboard ) to delete all the selected elements. similar to this: 2024-03-27.23-43-16.mp4 |
That would work in most situations. Maybe it is a 2-d drag. But what about tablet devices? |
I think for tablet devices we can implement a touch gesture for selecting multiple blocks on tablet devices. Users can tap and hold to initiate the selection, then drag to expand the selection area. we can change the color of selected blocks as an indication. To delete the blocks, In place of the "delete" key, we can provide a delete button or icon that appears when multiple blocks are selected. This button can be easily accessible on the screen for users to tap and delete the selected blocks. |
Can we have a "select" button which on pressing, takes us into selection mode. On clicking any block in select mode , it gets selected so we can select multiple blocks just by single click or tapping. After that we can perform bulk operations for them like delete. This also broadens the scope of bulk features that can be implemented say copying as well. What are your thoughts on this @walterbender @apsinghdev ? |
@divyanash911 Yes, it's what I proposed for tablet devices. but instead of adding a "select" button and "selection mode", my idea is to just let the user tap and hold on a block to start the selection and after that just click once on other blocks to select. Finally, delete using the icon. For computer devices, In my opinion, Music Blocks is mostly used on Computer devices (though I am not sure). so selecting the screen using a 2-D drag is quite intuitive and easier to implement as we won't be required to maintain a state (for mode) ig. using both the approaches in conjunction may be good idea? @walterbender can provide better thoughts. |
Right now, a long press will invoke the same response as a right click--to bring up the secondary pie menu. I suppose we could use that menu to set the user initiate a bulk select. |
So we add an option to bulk select blocks in that pie menu ? And in bulk select mode we can delete using a separate button? Or have I misunderstood the workflow? |
In general, I think a bulk select could be useful (bulk drag, for example). So I think we need bulk select and perhaps repurpose the delete button. |
So instead of a delete button, we can have a select button and a new delete button which pops up like when you single click a block? |
I wouldn't say "instead of". But if you have used bulk select, then the existing delete button will delete everything selected instead of just the one block. |
this approach I think is better as it can be implemented with less code and it also solves the problem of tablet devices. all we need to do is give the "delete" button another purpose when multiple blocks are selected. |
Current Behavior
I made a project in which I added some unnecessary blocks. then I found a way to improve my project so I have to remove those extra blocks but picking a block and dragging it to the trashcan is tiring and time-consuming when there are a lot of blocks to remove.
Desired Behavior
Wouldn't be a nice idea to to be able to select the blocks in bulk, hit the 'delete' key and all the blocks disappear?
Screenshots / Mockups
Blocks I have to delete
Implementation
Acceptance Tests
All the blocks should be deleted similar to how we delete by dragging to trashcan.
Environment
Checklist
Thank you for contributing to our project! We appreciate your help in improving it.
📚 See contributing instructions.
🙋🏾🙋🏼 Questions: Community Matrix Server.
The text was updated successfully, but these errors were encountered: