Repository navigation
feat: add PDF collections in History and save All-in-One Cmd+C captures - #420
Merged
Merged
Conversation
Closes #418 - Persist All-in-One rendered captures copied via Cmd+C / Enter / Cmd+Shift+C or saved via Cmd+S into Screenshot History without altering the Cmd+C shortcut routing (#239, #298) or freeze-overlay dismissal (#395). - Add HistoryCollection storage in HistoryKit (GRDB migration v3) with HistoryCaptureMode.pdfPage, keeping imported PDF pages grouped in decks rather than flooding the flat daily timeline, and protecting collection members from automatic retention cleanup. - Support importing PDFs into Screenshot History via Import PDF button, drag-and-drop, and Finder Open With (com.adobe.pdf), with progress, cancellation, and password-protected PDF prompts. - Add HistoryCollectionDetailView for ordered 1..N deck editing: open any page in AnnotationEditorWindow (updates in-place), interleave screenshots via picker / context menu / Cmd+V paste / drag-and-drop, drag to reorder, and export the ordered deck back to a single PDF.
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.
Closes #418
Summary
1. Save All-in-One
⌘C/⏎/⌘⇧C/⌘Scaptures to Screenshot HistoryCaptureCoordinator'sonCopyRenderedandonSaveRenderedcallbacks to record rendered All-in-One captures intoHistoryCoordinator(along with updatingsettings.lastCaptureSelectionand clearingpendingSourceApplication).CaptureAllInOneToolbarWindowshortcut routing (#239,#298) and freeze-overlay dismissal (#395) untouched so there is zero regression on annotation object copy, synthetic⌘Cfiltering, or dismissal flicker.2. PDF Collections (Decks) in Screenshot History
HistoryKit):v3_add_history_collections(history_collections+history_collection_items) with SQLite foreign keys enabled.HistoryCaptureMode.pdfPageso imported PDF pages stay grouped inside collections instead of flooding the flat daily timeline.deleteOlderThan). Deleting a collection removes orphaned.pdfPagefiles while preserving regular screenshots.App+SharedKit):.pdffiles onto the History window, or Finder Open With → Capso (com.adobe.pdfinInfo.plist).HistoryView+HistoryCollectionDetailView):PDFsfilter tab, stacked collection cards (HistoryCollectionCard) with hover Open / Export / Delete actions and rename sheet, and conditionalExport PDF (N)for multi-selected screenshots.1 → Norder, supports double-click/Edit inAnnotationEditorWindow(in-place update), interleaving screenshots (+ Add Screenshotspicker,Add to PDF Collectioncontext menu from main History,⌘Vclipboard paste, or drag-and-drop images/PDFs), drag-to-reorder, and exporting the ordered deck back to a single PDF.Verification
swift test --package-path Packages/SharedKit: 280/280 passed (includingpartitionPDFsSplitsPDFFiles).swift test --package-path Packages/HistoryKit: 5/5 passed (includingcollectionsLifecycleAndRetentionProtection).xcodebuild test -project Capso.xcodeproj -scheme Capso -configuration Debug):CapsoTestspassed, including:CaptureAllInOneAnnotationShortcutTests(newtestAllInOneCommandCRecordsRenderedCaptureToHistory+ existing#239/#298tests)AnnotationCanvasClipboardShortcutTests&SyntheticKeyEventGuardTestsHistoryPDFExportTests(newtestImportPDFInterleaveScreenshotReorderAndExportBackToPDF)Capso.appEnd-to-End GUI Verification:Capso.app→ History auto-opened the deck with 3 centered 16:9 slides (1 → 3).⌘Vto paste a clipboard screenshot as Page 4 (1 → 4).AnnotationEditorWindow, added a text annotation ("Key Point!"), saved with⌘S, and confirmed Slide 1 updated in-place both in the deck and as the stacked collection cover thumbnail in the main History view.