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

[ENH] Implement Cut/Copy/Paste Logic for Objects #391

Closed
arjxn-py opened this issue Jul 30, 2024 · 5 comments
Closed

[ENH] Implement Cut/Copy/Paste Logic for Objects #391

arjxn-py opened this issue Jul 30, 2024 · 5 comments
Assignees
Milestone

Comments

@arjxn-py
Copy link
Member

Currently, the extension lacks cut, copy, and paste operations for objects, which are nice to have for enhancing UX through standard keyboard shortcuts. This feature request aims to implement these functionalities along with their respective key bindings.

Cut (Ctrl/Cmd + X):

  • Remove the selected object from the current view and store it in the clipboard.
  • This operation should be undoable.
  • Add the keybinding Accel X.

Copy (Ctrl/Cmd + C):

  • Copy the selected object to the clipboard without removing it from the current view.
  • This operation should be undoable.
  • Add the keybinding Accel C.

Paste (Ctrl/Cmd + V):

  • Insert the object from the clipboard into the current view.
  • This operation should place the object at the mouse cursor location or in a default position if no cursor location is applicable.
  • This operation should be undoable.
  • Add the keybinding Accel V.
@arjxn-py
Copy link
Member Author

arjxn-py commented Jul 30, 2024

At some point, I will be more than happy to look into the implementation of the same. Feel free to correct me with the feature request if required.

@martinRenou
Copy link
Member

While playing more with JupyterCAD, I realized how badly this is missing :D

@martinRenou martinRenou added this to the 3.0.0 milestone Nov 28, 2024
@martinRenou
Copy link
Member

I'm adding it to the 3.0.0 milestone, but we can always move it to a 3.1.0 milestone if we don't want to delay 3.0.0 with this

@arjxn-py arjxn-py self-assigned this Dec 2, 2024
@arjxn-py
Copy link
Member Author

arjxn-py commented Dec 2, 2024

I'm giving it a try

@martinRenou
Copy link
Member

Done in #624 thanks!

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

2 participants