Add scrolling capture of the window under the cursor - #2097
Open
x1xhlol wants to merge 11 commits into
Open
Conversation
…notification setting, avoid revealing main window after OCR, restore macOS diagnostics bindings
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.
Summary
Adds scrolling capture: a new hotkey action ("Scrolling capture of window under cursor", unbound by default) that captures an entire scrollable window — not just the visible part — by scrolling it and stitching the frames into one tall screenshot, saved as a normal Cap screenshot project.
How it works (
scrolling_capture.rs):imagebuffers.Showcase
A 60-section page captured into one 1280x7404 image:
Bottom of the stitch — capture stops at the page footer with no repeated content:
Testing (Windows, end-to-end on a live dev build)
.capscreenshot project on every runmacOS compiles the same capture/stitch path with a CoreGraphics scroll-event injector; runtime-tested on Windows only.
Builds on #2095 (OCR text capture — shares its capture/save helpers); the scrolling-capture change itself is the top two commits.
Greptile Summary
This PR adds window scrolling capture, OCR area capture, associated hotkeys and settings, and refactors screenshot capture/saving into reusable backend helpers.
Confidence Score: 3/5
The PR should not merge until scrolling captures are capped before appending oversized strips and the Linux action is either implemented or disabled.
Near-limit captures can produce images rejected by the screenshot editor, while Linux exposes an action whose scroll injector performs no operation and therefore cannot capture off-screen content.
Files Needing Attention: apps/desktop/src-tauri/src/scrolling_capture.rs, apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx, apps/desktop/src/utils/tauri.ts
Important Files Changed
Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "Tune scrolling capture stepping and matc..." | Re-trigger Greptile
Context used (3)