Yes - we can run our own versions of Snap! (without cloud login facility) by just downloading the source code and just opening the index.html file with a browser
(I believe you can get cloud as well but that requires having your webserver AFAIK)
I found the right-click menu code section and just copy/pasted the code for the duplicate entry and then just called the code that deletes a block after making the copy
The syntax came from the discussion in the GP forum
and as @tguneysu posted, John (Maloney) has implemented the idea in Microblocks so at the moment, its the de-facto standard
I'm not tied to the name but the all the action does is "extract" the block from the script - it doesn't move it anywhere in particular (Just like the duplicate blocks - they just make a copy - they don't move/put them anywhere)
"Move" meant to be what you wanted to achieve, and therefore, what you will probably look for in the context menu. But true, it's not strictly what it does. However, you will automatically hold that block after clicking on that menu item, so you will move it together with the mouse pointer. (At least "duplicate" does that.) So it's not a lie either if we call it "move".
One caveat... what's with the touch interface. There you won't hold the block initially. (I never even tried Snap with touch, but I assume so.) Well, you still moved the block out of its original place...
I just used Notepad++ (I'm using Windows)
Every now and then I try playing with specialist code editors but I find them too complex for my simple needs
Unfortunately, I'm not very good at writing tutorials/documentation
Since cymplecy was so quick with the extract idea ( THANKS CYMPLECY), another GREAT feature I like in block IDE's is the "DISABLE BLOCK" feature in MIT App Inventor.
One R-click selects it in the menu and the block turns light grey / beige color and will not be executed in the stream that it is located. Another R-click and "ENABLE BLOCK" activates the block again.
Great debugging tool without messing up the order / sequence of blocks, which is my biggest gripe with long block sequences that are riddled with C-Blocks to boot.
Yes, I know about keyboard input, but one of the points of a visual editors like this is that kids don't have to type. (Besides, the keyboard input support could be improved too, but this is OT.)
I have updated the Feature Request description. Instead of hovering and check boxes now it says:
But it could become much better, if Snap supported selecting multiple blocks. The context menu could have "Start selection", which after clicking allows you to select the other end of the consecutive blocks, then clicking that makes them all selected. Then, with "Move" all that could be moved at once. Selection also could work with other operations, like Delete, Duplicate, etc.
Thanks! I've implemented this feature for the upcoming v6.3 minor release. Instead of ctrl you'll be holding down the shift key to extract a single command block from within a stack. In addition there will be an "extract" option in the context menu.