Repository navigation
feat: annotation styles, selectable text on pins, barcode recognition - #107
Merged
Merged
Conversation
…xt box and outline Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # apps/desktop-gpui/src/pins.rs
# Conflicts: # crates/snap-core/i18n/messages.en.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Three roadmap features, each built on its own branch and merged here for one review.
Annotation styles (capture, pins and live annotation while recording)
Annotationfields are#[serde(default)]and skipped when default, so old capture/pin history loads and saves unchanged. The live preview, exports, pins and the recording raster draw the same thing.Select text on pins
T, the toolbar button or the context menu runs OCR with the configured engine and overlays a selectable text layer. Drag, double/triple-click (word/line), Shift+click, Ctrl/⌘+A, Ctrl/⌘+C (reading order, line breaks kept; copies the image when nothing is selected),Hturns the selection into highlighter annotations, Esc leaves.snap_core::recognition::text_layerwith unit tests.Barcodes and 2D codes
rqrris replaced byrxing(Apache-2.0): QR / Micro QR, Data Matrix, Aztec, PDF417 and Code 128, Code 39, Code 93, Codabar, EAN-13/8, UPC-A/E, ITF, GS1 DataBar. Every code in the image is listed top-to-bottom with its format and content, each with its own copy button. URLs still need confirmation before opening.recognition/qr.rsbecamerecognition/codes.rs; labels read "二维码 / 条形码" where it fits.Docs (
capture.md,ocr.md,pin.md,shortcuts.md, guide index), READMEs, TECHNICAL.md, English strings and the TODO table are updated.Why
The owner picked these from the roadmap: annotation styles are free in PixPin and paid in Snipaste, selectable text on pins is PixPin's signature feature, and barcode recognition is paid in both while costing little here.
Notes for review
pins.rs, one English string) and one compile fix: the highlighter marks built bytext_layernow set the new style fields.Cargo.lockchanges forrxing. Its effect on release size and compile time hasn't been measured yet.cargo test -p snap-core -p snap-desk-gpui(404 + 64 passed) andnode scripts/check-architecture.mjspass. With the pre-existingwhile_immutable_conditionerror inscroll/recovery.rsallowed, Clippy reports nothing in the new code.🤖 Generated with Claude Code