GitHub Co-pilot like functionality 😁.

70 views
Skip to first unread message

Murali Manohar Varma

unread,
Jan 11, 2023, 2:40:59 PM1/11/23
to Blockly
Hai Beka,

Hope your having a great day. 
I love to hear your opinion on something i am thinking from a long time.

Is it possible to have some blocks in faded color like shadow blocks and fill them when pressed tab or similar action. Like how GitHub co-pilot shows code in vscode. Recommendation wise, i am aware of the difficulties, but how flexible will it be from blockly side if we want to implement this. From frontend perspective, what are the challenges are involved. If possible, can you give me some insights. 

Thanks in advance.

Beka Westberg

unread,
Jan 11, 2023, 5:01:33 PM1/11/23
to blo...@googlegroups.com
Hello!

I think it depends on a bit on how you actually want to implement this =) One thing to note is that you probably won't be able to use shadow blocks directly, because they have a restriction where a shadow block can only have shadows as descendants. I.e. you can never have a "real" block with a shadow block as a parent.

However in general, I don't think there's any blocker for you showing faded "suggestion" blocks! You should be able to use themes to handle the styling. And then you should be able to install an event listener on your webpage to watch for those tab presses.

If you have any more specific questions I'm happy to look into them! But in general I think this is achievable from a Blockly perspective =)

Best wishes,
--Beka

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/f61c4079-0a7c-46aa-acfb-f2e3edf616c3n%40googlegroups.com.

Murali Manohar Varma

unread,
Jan 11, 2023, 8:15:48 PM1/11/23
to Blockly
Got it, Thanks beka. I need to first implement it from python side, if i have any doubts, i will let you know. Thanks once again for such a great support.

Beka Westberg

unread,
Jan 12, 2023, 11:20:23 AM1/12/23
to blo...@googlegroups.com
My pleasure :D Best of luck with your project!!
--Beka

Reply all
Reply to author
Forward
0 new messages