feat(capture): choose what to capture — area, window, browser page or screen

Capture is now a decision, not a hidden setting. The popover shows a four-way scope control with the target named under it (800 x 600 on Display 1, the frontmost window, the front browser window, the whole display), and the window header carries the same choice beside the verbs. Picking Window or Browser hides Redline, dims the screen, names the app under the pointer and highlights its window; a click captures exactly that window, Escape cancels, and the desktop highlights the whole screen. New Session is one click: the current captures stay in their own folder, a fresh session opens, and the area picker comes straight up with the saved area pre-selected — Return keeps it, a drag replaces it. Settings is consolidated into one door (the popover gear, plus Cmd-,): what to capture, saved area, shortcut, ask-on-new-session, sending, session age limit, and a new Updates group with automatic install (on by default; installs only when nothing is unsent). The footer filler and the extra-actions menu are gone.
This commit is contained in:
Claude Fable 5
2026-11-01 11:47:58 +04:00
parent 1ae8351b04
commit 3fb9b504f4
18 changed files with 1601 additions and 152 deletions
@@ -11,6 +11,8 @@ public enum ShotdeckError: Error, LocalizedError, Sendable {
case airDropUnavailable
case noCommentedReturns
case oneDriveFolderUnavailable(path: String)
case noFrontWindow
case noBrowserWindow
public var errorDescription: String? {
switch self {
@@ -34,6 +36,10 @@ public enum ShotdeckError: Error, LocalizedError, Sendable {
return "None of the returned PDFs have comments on them."
case .oneDriveFolderUnavailable(let path):
return "Your OneDrive folder is not available: \(path). Check that OneDrive is signed in, or choose another folder in Settings."
case .noFrontWindow:
return "There is no front window to capture. Click the window you want first, or choose Area."
case .noBrowserWindow:
return "No browser window is open. Open the page you want, or choose Window or Area."
}
}
}