Fork of backnotprop/plannotator with reduced surface area

fix: preserve newlines in copy and add Cmd+C shortcut (#87)

* fix: use @plannotator/web-highlighter for proper newline handling - Switch from web-highlighter to @plannotator/web-highlighter@0.8.1 - Use source.text from highlighter (preserves newlines in cross-block selections) - Update dependency to ^0.8.1 which fixes exports field for bundlers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * feat: add Cmd+C keyboard shortcut for copying selected text Closes #60 When text is selected and the annotation toolbar is visible, Cmd+C (Mac) or Ctrl+C (Windows/Linux) will copy the selected text with proper newlines preserved between block elements. This works because @plannotator/web-highlighter@0.8.1 now captures text using Selection.toString() which preserves newlines for cross-block selections. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: don't intercept Cmd+C in input/textarea fields Prevents the custom copy handler from intercepting Cmd+C when the user is focused in an input or textarea (e.g., annotation comment input). Previously, copying text from an input would copy the original plan selection instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>


Author Michael Ramos Co-author Claude Opus 4.5 Committer GitHub Date Commit Parent 4ed4d151
+36 -9
3 changed files
+36 -9
3 changed files