Skip to content

Adding copy paste feature for the editor on selected strokes and Images#1764

Open
SandipLow wants to merge 3 commits into
saber-notes:mainfrom
SandipLow:copy-paste-feature
Open

Adding copy paste feature for the editor on selected strokes and Images#1764
SandipLow wants to merge 3 commits into
saber-notes:mainfrom
SandipLow:copy-paste-feature

Conversation

@SandipLow

@SandipLow SandipLow commented Jun 6, 2026

Copy link
Copy Markdown

Added copy paste feature for the editor on selected strokes and Images.

User can make a selection on the page and able to copy the selection via CTRL+C / Copy Button in the selection toolbar. Then paste it to another page / notebook with CTRL+V / Paste Button in the selection toolbar.

Demonstration video:

https://drive.google.com/file/d/1DXB6oOzqk9tDyN_pmoFYdxj4zplofy-K/view?usp=drive_link


Summary by cubic

Add copy/paste for selected strokes and images in the editor. Copy with Ctrl+C or the selection toolbar, and paste with Ctrl+V or the toolbar across pages and notebooks.

  • New Features

    • Selection toolbar: added Copy and Paste buttons.
    • Keyboard: Ctrl+C copies when a selection is finished; otherwise it still opens color options. Ctrl+V pastes the last copied selection.
    • i18n: added editor.selectionBar.copy and editor.selectionBar.paste and regenerated translation files.
  • Refactors

    • Formatted Dart files to pass checks.

Note: Saber is trialling Cubic AI code review. AI output may contain mistakes, misconceptions, and hallucinations. You can act on the AI feedback if you find it helpful; otherwise you can disregard it and wait for a human reviewer.

Written for commit bbd531e. Summary will update on new commits.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 27 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 3.44828% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.55%. Comparing base (f78ab04) to head (bbd531e).
⚠️ Report is 46 commits behind head on main.

Files with missing lines Patch % Lines
lib/components/toolbar/selection_bar.dart 0.00% 20 Missing ⚠️
lib/components/toolbar/toolbar.dart 11.11% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1764      +/-   ##
==========================================
- Coverage   51.94%   51.55%   -0.40%     
==========================================
  Files         131      131              
  Lines        9383     9497     +114     
==========================================
+ Hits         4874     4896      +22     
- Misses       4509     4601      +92     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@SandipLow

Copy link
Copy Markdown
Author
anyone-there-looking

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.

1 participant