Add new "Move to Group" Command
Use case: when groups nicely represent the structure of a drawing, adjustments and additions of new objects need to be moved to the right group to keep the drawing well structured.
Requirement: Add a new command to put a selected object/s or group inside the target group.
To have a similar effect to the "Move to Layer" command. Just with groups. And have the opposite effect to "Pop selection out of Group" command.
Operation: Select a group and some objects. Click Move to group. If the objects Z is above the group it is put at the Z top in the group. If below, it is put at the Z bottom of the group. If mixed Z in a multiple selection the same result. But the objects Z could be moved together.
If 2 groups are selected, the second selected is the target. The first selected becomes a sub-group of the target group. Optionally the groups could be merged to form one larger group.
UI possibilities:
- Add context menu item Move to Group. Then select any target group on the canvas or Object manager.
- Add a switch in "Move to Layer" command to use groups. Pro= fewer commands. Con= Move to Layer command is complexer
- Use a modifier key to switch the context menu item "Pop out of group" with the opposite "Move in to Group".
Workarounds today:
- Use Object manager to convert the Group to a Layer. Use 'Move to Layer'. Then convert the layer back to a group.
- Drag and Drop in the Object manager. Only easy to do if both items are seen at the same time. In a long list it is very easy to lose your place.
- Cut, enter group, then Paste-in-place inside the group. Less obvious for new users and less direct.
- Select object and group, go Ungroup then Group again. This loses group name and stack position. Thus harming a well structured drawing.