Block groups

85 views
Skip to first unread message

Oussama Mubarak

unread,
Oct 17, 2022, 5:44:10 AM10/17/22
to Blockly
Hi,

When lots of blocks are present on the workspace, it becomes quite difficult to see them all or find a specific one.
I would like to be able to group related blocks together in the workspace by allowing users to create (possible named) groups and then add blocks into each group which could then be collapsed or expanded to make it easier to organize the workspace.

Has anyone implemented such a feature or has any advice on how it can be done?

Thanks in advance.

ewpa...@gmail.com

unread,
Oct 17, 2022, 9:36:27 AM10/17/22
to Blockly
There was an effort to do something like what you are requesting by a student at Wellesley College in 2015 for App Inventor (ref). That work was based on a much older version of Blockly, but it might be possible to reimplement the logic with a newer version. We've considered potentially implementing it as a plugin in the future.

Regards,
Evan

Oussama Mubarak

unread,
Oct 17, 2022, 12:15:06 PM10/17/22
to Blockly
Thank you very much Evan.
I will take a look at this and try to see if I manage to create a plugin for v9.

Sean

unread,
Oct 17, 2022, 4:23:08 PM10/17/22
to Blockly
Wow that's a cool concept. I can see this being useful to many others aswell. 
Hope you're able to create the plugin. Best of luck.

ewpa...@gmail.com

unread,
Oct 18, 2022, 4:25:17 PM10/18/22
to Blockly
Just be are that that version required a lot of patches to the serialization and rendering code. I think at least some of the serialization issues should be addressed with the new JSON system, but I'm not sure that the renderer code would easily translate to the new model. I can probably dig up a pointer to the implementation within the App Inventor code base.

Cheers,
Evan

On Monday, October 17, 2022 at 12:15:06 PM UTC-4 oza...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages