Repository navigation
zcode 0.1.2
Images open in zcode.
Image files open in a tab instead of failing. Opening a PNG used to fail with "is not a UTF-8 text file". Images now open in their own tab from the navigator, Open Quickly, zcode <file> or MCP's OpenFile. Supported: PNG, JPEG, GIF, TIFF, BMP, WebP, ICO, ICNS, HEIC/HEIF, JPEG 2000, and PDF (the first page).
- Sized to fit. An image is scaled down to fit the pane but never drawn bigger than its own size, so a small icon stays small. Images larger than 8192 pixels on a side are scaled down when decoded, and a PDF page is drawn at up to 2048 pixels.
- A footer with the details. It shows the format, the size in pixels (points for a PDF) and the file size, for example
PNG · 980 × 198 pixels · 16.1 KB. - Kept current. If the file changes on disk, it's read again when you come back to its tab.
- Decoded in the background, so a large image doesn't hold up the editor, and its memory is freed when you close the tab.
- A broken file says so. One that can't be decoded shows "Can't show this image" with the reason, instead of an error.
Not yet: SVGs still open as text, since they're source you edit. Animated GIFs show only their first frame. There's no zoom. Comparing a changed image in Code Review still reports it as not UTF-8 text.
Also new: scripts/default-app.sh makes zcode the app Finder opens Xcode projects, workspaces and Swift sources with. --restore gives them back to Xcode and --print shows what opens each one now. On macOS 26.4 and later, macOS asks you to confirm the first time a type changes.
Full Changelog: v0.1.1...v0.1.2