Skip to content

feat: allow copying placement coordinates with a click #142#148

Open
Valley-15 wants to merge 2 commits intofrappe:developfrom
Valley-15:feat/copy-coordinates-142
Open

feat: allow copying placement coordinates with a click #142#148
Valley-15 wants to merge 2 commits intofrappe:developfrom
Valley-15:feat/copy-coordinates-142

Conversation

@Valley-15
Copy link
Copy Markdown

Add click handlers to X and Y coordinate labels in the Placement sidebar to copy values to the clipboard. This assists users in duplicating object positions across slides accurately.

Closes #142

Add click handlers to X and Y coordinate labels in the Placement sidebar to copy values to the clipboard. This assists users in duplicating object positions across slides.

Closes frappe#142
@asmitahase
Copy link
Copy Markdown
Member

asmitahase commented Jan 29, 2026

Um, this makes copying easier, but pasting should also be equally easier 😅
What is important is that I shouldn't have to remember the co-ordinates the element is at, in the previous slide or hop back and fourth on the slides to copy paste them twice

@Valley-15
Copy link
Copy Markdown
Author

Hello @asmitahase Mam,

Thank you for the feedback. I have updated the Pull Request to make the pasting process just as easy as copying, addressing the workflow concerns you mentioned.

Key Changes:

  • Dedicated Icons: I have added distinct Copy and Paste buttons next to both the X and Y coordinate fields in the Placement sidebar.

  • Streamlined Workflow: Users can now copy a coordinate from one element and instantly apply it to another with a single click, eliminating the need to memorize values or hop between slides multiple times.

  • Rounded Precision: The copy function automatically rounds coordinates to the nearest integer to ensure clean alignment without decimal offsets.

  • Clear Feedback: Added informative tooltips to each button to guide the user.

I have attached a screen recording below demonstrating the new feature in action. Please let me know if there are any further improvements you would like to see!

v1.webm

@Valley-15
Copy link
Copy Markdown
Author

@coderrabbitai can you review it

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

Successfully merging this pull request may close these issues.

feat: allow the placement co-ordinates to be copied with a click

2 participants