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

Cut/copy/paste nodes #194

Closed
5 tasks done
progrium opened this issue Jun 1, 2023 · 2 comments
Closed
5 tasks done

Cut/copy/paste nodes #194

progrium opened this issue Jun 1, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@progrium
Copy link
Contributor

progrium commented Jun 1, 2023

This spec defines the user ability to cut, copy, and paste nodes allowing them to move (and duplicate) nodes across their workspace.

New commands:

  • Copy - effectively exports node into clipboard as custom mime type, including children+components
  • Copy Reference - exports a reference node pointing to this node into clipboard
  • Cut - puts a cut reference into clipboard to indicate moving the node on paste
  • Paste - inserts exported node from clipboard (copy), or moves cut referenced node from clipboard (cut) after given node

These commands would have standard system key bindings, but only trigger if there is no selection text. They would also be included in the node menu, though maybe Copy Reference is an alt (hold alt) for Copy. Paste would be disabled if nothing to paste is in the clipboard.

  • empty commands and keybindings
  • node menu
  • cut/paste
  • copy
  • copy ref
@progrium progrium self-assigned this Jun 1, 2023
@progrium progrium added the enhancement New feature or request label Jun 1, 2023
@progrium progrium added this to the 0.5.0 milestone Jun 13, 2023
@taramk taramk changed the title Cut/copy/paste nodes Cut/copy/paste nodes (including bulk edit) Jun 16, 2023
@taramk taramk changed the title Cut/copy/paste nodes (including bulk edit) Cut/copy/paste nodes Jun 16, 2023
@progrium
Copy link
Contributor Author

progrium commented Jul 4, 2023

Copy as Reference is not available as an "alt" menu item for now. Still reachable via shortcut or command picker.

@progrium
Copy link
Contributor Author

progrium commented Jul 4, 2023

Also as implementation note, this doesn't use the actual clipboard as I originally planned. That would trigger user permission requests and not sure how universal these APIs are yet. Instead we have our own clipboard and co-exist with system clipboard shortcuts. Downside is clipboard is lost between page reloads and copy and paste will not work across tabs.

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

No branches or pull requests

1 participant