The format of SET CONTEXT is now:
SET CONTEXT objecttype text commands;
I suggest allowing to create context submenus by using -> as sub menu
separators, so that...
SET CONTEXT wire "group->ulp1" 'run ulp1';
SET CONTEXT wire "group->ulp2" 'run ulp2';
..would break up the two items into a context sub-menu called "group"
with the sub items "ulp1" and "ulp2".
This may of course expand to even more depth, (but define a fixed max
depth number to avoid potential overflow bugs)
Of course the "->" could be replaced with anything that doesnt cause
conflicts with normal text.
Also, the context menu could sometimes do with a spacer, like the one
that is there today, just before the properties. So why not add a
special character for that in the same go. It could maybe go in as a
prefix of the text string.