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 · 1 comment · May be fixed by #662
Open

Add copy/paste #552

AlexBxl opened this issue Dec 2, 2024 · 1 comment · May be fixed by #662
Assignees
Labels
enhancement New feature or request

Comments

@AlexBxl
Copy link
Collaborator

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.

@AlexBxl AlexBxl self-assigned this Feb 17, 2025
@AlexBxl
Copy link
Collaborator Author

AlexBxl commented Feb 19, 2025

paste to mouse pointer if possible, otherwise center of viewport

@AlexBxl AlexBxl linked a pull request Feb 21, 2025 that will close this issue
4 tasks
@AlexBxl AlexBxl added the enhancement New feature or request label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant