Skip to content

feat(desktop): screenshot card and after-capture settings - #4791

Draft
richiemcilroy wants to merge 22 commits into
shots064/basefrom
feat/screenshot-card
Draft

richiemcilroy wants to merge 22 commits into
shots064/basefrom
feat/screenshot-card

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Adds a card after every screenshot and an After capture section in Settings › General.

Card

  • 210 × 150 at the default size, 40 pt from the screen side and 101 pt above the screen bottom (never below the work area), on the screen the pointer is on. Cards fade in place and stack upward, older ones staying put; the newest gets a blue outline that fades after a few seconds. Hover, exits (sliding off the screen edge), folding and restoring follow measured timings.
  • On hover the image blurs and darkens: Copy and Save in the middle, Close, Annotate (screenshot editor) and Upload (share link; sign-in and Pro handled like the editor) in the corners. Pin has a hook but stays hidden until pinning exists.
  • ⌘C / ⌘S / ⌘E / ⌘U / ⌘W work only while the pointer is over a card (Ctrl on Windows and Linux). Space opens a preview beside the card; Space again closes it.
  • Drag the card into another app to drop the file (macOS). It closes afterwards unless ⌥ is held or the setting is off.
  • Double-click opens the editor. Right-click menu on macOS and Windows.
  • A two-finger swipe one way sideways closes a card; swiping down folds the stack into a tab at the bottom edge.
  • Restore Last Capture: tray item and a shortcut slot.
  • Studio recording cards are unchanged. When both are up, the screenshot cards sit above them.

Settings

  • After capture: Show card, Copy to clipboard, Save, Upload and copy link, Open editor. At least one stays on. New installs get the card only.
  • Screenshot card: position, move to active screen, size (5 steps), auto-close with action and interval (5 s to 10 min), close after dragging, close after uploading, Save button behaviour.
  • Existing postScreenshotBehaviour carries over once (Copy, Edit, Both, Save map to the same switches, no card).
  • The main window's Copy and Editor rows now switch these settings directly.

For the capture overlay
screenshot::take_screenshot_with(target, CaptureOptions { copy_to_clipboard: true }, cx) copies regardless of settings. It reaches app_windows::screenshot_finished as the options argument.

Testing

  • Unit tests: migration from every older value, defaults, at-least-one rule, store round trip, stack geometry, swipe rules, preview placement, restore order, card keys.
  • Real app on hosted macOS and Linux runners, driven by a debug hook after real hotkey screenshots: card, stack, hover, keys held only while hovered, Space preview, copy to clipboard, save, fold and unfold, swipe, restore (also from the tray), drag end with and without ⌥, and migration of an older Copy choice.

Confidence Score: 5/5RetriggerView in Greptile

The latest update appears safe to merge.

Summary

Adds screenshot cards, after-capture settings, and Restore Last Capture.

  • Screenshots appear in floating cards with actions for working with each capture.
  • Screenshot settings choose what happens after capture and how cards behave.
  • Capture results reach screenshot cards without disrupting Studio overlays.

Reviews (10) · Last reviewed commit: "fix(desktop): card positions follow the ..." · Reviewed by Greptile

Show card, copy, save, upload and open editor as separate switches in
Settings > General, with the card's position, size, auto-close and
close rules. The older after-screenshot choice carries over once, and
the main window's Copy and Editor rows switch the same settings.
A floating card per screenshot, newest on top, with Copy, Save, Close,
Annotate and Upload on hover, keys while the pointer is over it, drag
out to other apps, a right-click menu, swipe to close or fold, and
Restore Last Capture in the tray and as a shortcut.
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Dec 2, 2026 10:07pm UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 17:04 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 17:07 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 17:16 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 17:25 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

From #4787 (capture overlay), for when both are in: both PRs add screenshot::take_screenshot_with(target, options, cx) and pass options into screenshot_finished. #4787's options type is crate::capture_overlay::CaptureOptions, and its held-Control flag uses your field name, copy_to_clipboard. It also carries skip_preset (Shift held), cursor, frozen and remember_area. Suggested merge: keep #4787's type and make yours pub use crate::capture_overlay::CaptureOptions;. Your screenshot_finished body then works unchanged (after_capture.after.copy || options.copy_to_clipboard). One difference: #4787's type is Clone but not Copy, because it holds the frozen frame.

210 by 150 cards 40 in from the edge, sliding in from it; a 2 pt outline
on the newest; Space opens a preview beside the card; one sideways
swipe closes; a card-wide frosted tab when folded; the auto-close
intervals and right-click menu in the reference order.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 17:41 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 17:49 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 17:50 Inactive
After Capture's Save no longer holds the card's job slot, so Upload
runs too. A card stays while its save panel is open, auto-close tries
again after a job, and the dragged file is a copy.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 18:01 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

…ards

A save started by After Capture keeps updates from restarting until it
is written, and a card kept only for that work goes once it is done.
On Wayland the preview draws an empty frame before a capture too.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 18:44 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 18:59 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 19:13 Inactive
The card moves towards the edge as the fingers go, out from under the
pointer, so the rest of the gesture is followed from the window.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 19:20 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

Cards fade in place, the newest outline comes and goes, hover eases
blur, dim and controls together, exits slide off the screen edge, Copy
and Save answer with a check, folding and restoring slide with the
measured curves, and tooltips wait two seconds.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 20:42 Inactive
Natural scrolling is undone before a swipe is judged, so a downward
swipe folds the stack whichever way the setting is.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 20:43 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

The check after Copy or Save is held on the card so nothing new starts
under it, exits and hover follow reduced motion, and restoring or
emptying the stack cancels a fold still sliding down.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 21:07 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 21:12 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

The older Do nothing choice now gets the card instead of saving files,
and Settings > Shortcuts links to General > After capture rather than
keeping its own picker.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 21:39 Inactive
The window grows below the stack while it folds into the tab or comes
back, so the cards travel all the way. The card draws its own
tooltips, which wait two seconds, fade in quickly and fade out slowly.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 21:42 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

…cked

The window grows and shrinks in a task, with the cards hung from the
top meanwhile, and the stored bounds follow. Tooltips fading out stay
tracked until closed, so a capture closes or blanks them too.
@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 22:03 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

@vercel
vercel Bot temporarily deployed to Preview – cap-status December 2, 2026 22:07 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please review the PR

This branch was previously deployed

1 inactive deployment
Preview – cap-status — a7878181 Deployed Dec 2, 2026 by vercel[bot]
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