-
-
Notifications
You must be signed in to change notification settings - Fork 580
Duplicate the selected layers #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'd be interested in taking this task. |
Perfect, I assigned it to you @tillarnold. @TrueDoctor, would you be able to describe what this task will involve? We don't need layer offset for the duplicated or pasted layer. |
I'm nor sure how this can be implemented cleanly, the easiest way would be to store a clipboard in the backend and manipulate it through operations but this is far from ideal. The other place to store these would be the editor, but until we have a history system setup we would need to resort to sending layers directly wrapped as operations which is not really idiomatic either. |
Let's just do the duplicate part for now, then we can evaluate what is involved in the copy/paste part. @TrueDoctor |
The easiest way to implement duplicate functionality is to add an Operation |
@tillarnold are you on the Discord server for Graphite yet? That's typically the way we onboard new contributors and provide an introduction to the code, either through a chat or voice call format. If that would be beneficial for your understanding, since I realize this may be confusing or vague without any context in the backend codebase. Or if you're the kind of person who's great at just reading through code files to orient yourself, that's also great. Discord is most commonly the easiest way to help you get up to speed but if that's not your thing, we want to help remove friction and confusion whatever it exists on any platform. Please let me or @TrueDoctor what would be best to help us help you succeed. |
Ctrl+D to duplicate the selected layers.
This should be a relatively simple task purely touching the Rust codebase. If you're interested in this issue, we can answer questions and write up a guide of steps to implement this feature.
The text was updated successfully, but these errors were encountered: