akiraux / Akira

Native Linux App for UI and UX Design built in Vala and GTK
GNU General Public License v3.0
5.24k stars 202 forks source link

Implement a Duplicate feature #726

Closed Alecaddd closed 1 year ago

Alecaddd commented 1 year ago

Summary / How this PR fixes the problem?

Implement a CTRL+d feature to duplicate a node into place. The node target node should be created above the source node in the layers list. A regular paste action should create the target node at the top of every other available layer.

Screenshot

2022-07-02 13-14-18

Known Issues / Things To Do

The code comes with a few repetitions, probably not the cleanest solution but it's serviceable. We should find a way to instruct a node to reset its coordinates to the center of the current viewport, so we can easily handle the past and past in place scenarios.