Skip to content
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

Add copy/paste #552

Open
AlexBxl opened this issue Dec 2, 2024 · 0 comments
Open

Add copy/paste #552

AlexBxl opened this issue Dec 2, 2024 · 0 comments

Comments

@AlexBxl
Copy link
Contributor

AlexBxl commented Dec 2, 2024

Overview

Copying and pasting nodes should probably be done through a text format like JSON for easier interop with the outside world. For the same reasons it probably makes sense to use the system clipboard and not something internal.

Cut ≠ Copy+Delete

Cut might need special handling for situations like when the user cuts some content and the app crashes, the cut content should at least be recoverable.

Inputs & Undo

Cut, Copy & Paste etc. should be undoable actions. Just like with undo, because browser inputs handle cut/paste by themselves, we need to figure out how to cooperate with it.

Alt/Option+Drag

This method of copying is very very convenient for maintaining flow when building graphs.

Duplicate

Copy/Paste functionality will make duplication easy to implement, something like Copy+Paste+Move (Move if we want to offset the duplicate), though this should probably be a separate ticket.

Drag & Drop

Using JSON helps to implement things like drag & drop loading of graphs, but we need more metadata. Also probably a separate ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant