Native app: floating screenshot preview, and keep the main window hidden after the editor closes
On 0.6.1 (macOS), every screenshot ends with me closing two windows. "After a screenshot" is set to Copy and edit, so the editor opens. When I close it, Cap's main window comes back too, even though it was hidden when I took the screenshot. Copy avoids both windows, but then there's no quick way to annotate the occasional screenshot that needs it.
Proposal
-
Only bring the main window back after the screenshot editor closes if it was open before the capture. Copy and Do nothing already work this way. With the editor options,
main_visible_before_pickeris dropped when the editor opens (app_windows.rs#L6546-L6553), andscreenshot_editor_closedcallsshow_main_windowwhenever the last editor closes (#L6726-L6752). -
A floating preview after each screenshot, like the macOS screenshot thumbnail:
- a small thumbnail in the bottom-right corner for a few seconds
- if ignored, it fades out; the screenshot is already copied and saved in the library
- clicking it opens the screenshot editor
- the main window never appears
This could be a new "After a screenshot" option ("Copy and show preview") or a toggle that works with Copy and Do nothing. The Studio
showOverlaypath already falls back to the main window "until an overlay exists" (#L612-L625), so one corner overlay could serve both.
Part 2 depends on part 1: without it, opening the editor from the preview and closing it still brings the main window back.
Related
- #1860: suggested the floating thumbnail; still open. Its editor and clipboard options shipped in #2559.
- #2491: same main-window complaint; closed once Copy covered the reporter's workflow.
- #1863: same complaint against the old app.
- #1897: had a "show overlay" option for the old app only; closed Oct 20.
Now that Cap has fully moved to the GPUI app, I'm happy to open a PR against apps/desktop-gpui for this, starting with part 1.
Thanks for the clear write up! Keeping the main window hidden after the screenshot editor closes is a good fix on its own, and the floating preview ties in with #1860.