Skip to content

fix(mac): declare the ZON document type - #7

Merged
adammharris merged 1 commit into
mainfrom
agent/backlog-open-zon
Nov 4, 2026
Merged

adammharris merged 1 commit into
mainfrom
agent/backlog-open-zon

Conversation

@adammharris

Copy link
Copy Markdown
Member

What changed

apps/flower-dioxus/Info.plist now imports org.ziglang.zon (extension zon, conforming to public.plain-text) and lists it in CFBundleDocumentTypes as an Alternate editor. This is the same shape as org.diaryx.fig. The plist's header comment now covers both imported types.

A new test in apps/flower-dioxus/src/file.rs holds the plist to the zon extension the Open panel offers.

Why

flower-core has opened ZON since fig 7, and file.rs already offered zon, but the Mac app declared no type for it. .zon has no system UTI, so the app has to import one.

Task

Closes docs/tasks/open-zon.md, now at docs/tasks/closed/open-zon.md. It was moved with prov mv --in, because org shelve acts on the main checkout.

Verification

  • The new test failed before the plist change, on the missing document type, and passes after it.
  • ship ci: all 7 jobs pass (fmt, clippy, test, package-isolation, bindings, dioxus, msrv).
  • plistlib parses the file and reads back both new declarations. prov check reports no findings.

Not verified on a Mac. This was checked on Linux against the plist alone. Nobody has yet tried Open With in the Finder, or whether the Open panel enables a .zon file. The test is a text check on the plist, not a Launch Services check.

The Open panel offered `zon` and flower-core opens it, but Info.plist
declared no type for it, and `.zon` has no system UTI, so the Mac app
could not open one. Import org.ziglang.zon and list it among the document
types as an Alternate editor, as org.diaryx.fig is. A test in file.rs
holds the plist to the extension the panel offers.

Closes docs/tasks/closed/open-zon.md.

Behavioural-change: Flower.app is offered for `.zon` files, in the Finder's Open With and in its Open panel.
@adammharris
adammharris merged commit 991f4e6 into main Nov 4, 2026
8 checks passed
@adammharris
adammharris deleted the agent/backlog-open-zon branch November 4, 2026 17:17
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