Skip to content

feat: Add File › New from Clipboard - #35

Merged
scooper4711 merged 1 commit into
mainfrom
feat/new-from-clipboard
Nov 15, 2026
Merged

scooper4711 merged 1 commit into
mainfrom
feat/new-from-clipboard

Conversation

@scooper4711

Copy link
Copy Markdown
Owner

File › New from Clipboard (⌥⌘N) opens the map on the clipboard in a new window, the way a drop does: an image copied in Pluck, a browser or Preview, a screenshot, or PDFs/images copied as files in Finder or Files. Disabled when the clipboard holds no map.

  • ClipboardMap (MapsmithCore, tested) picks what to open: copied map files first; copied non-map files open nothing (Finder also puts their icons on the clipboard); otherwise PNG, then any image, then PDF data, saved via DroppedImageStore as "Pasted Map".
  • ClipboardWatcher updates the enabled state from the clipboard's types only (no paste-permission prompt) when the app becomes active, and on the iPad when the clipboard changes in-app.
  • Mac: first item in the File menu. iPad: same command for a hardware keyboard / menu bar, routed to the window through a focused scene value.
  • Spec: R4 in docs/specs/multiple-documents.

Stacked on #33; retarget to main once that merges.

Tested: lint, 124 unit tests, Mac and iPad simulator builds. Not tested by hand: the menu itself (the screen was locked, so I couldn't drive it), the Allow Paste prompt on macOS/iPadOS.

Closes #32

Base automatically changed from feat/ipad-app to main November 15, 2026 19:46
@scooper4711
scooper4711 merged commit 746c62d into main Nov 15, 2026
2 checks passed
@scooper4711
scooper4711 deleted the feat/new-from-clipboard branch November 15, 2026 19:46
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.

New from Clipboard

1 participant