Skip to content

feat: an SVG file previews as its picture, and a click in the header shows its source - #164

Merged
nyxene merged 1 commit into
masterfrom
feat/32-svg-preview
Oct 28, 2026
Merged

nyxene merged 1 commit into
masterfrom
feat/32-svg-preview

Conversation

@nyxene

@nyxene nyxene commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

An .svg file previews as its picture, and the preview's header names the file's views so a click switches between them.

  • The picture is drawn by macOS sips, like the other images that are not PNG: no new dependency, and the server's sandbox already allows it, with networking denied.
  • The size comes from width and height (px, in, cm, mm, pt, pc) or the viewBox, so the 50-megapixel guard applies; an SVG whose size cannot be read shows its source.
  • The header names the views of a file, the one shown in bold; a click on another picks it: picture and source for an SVG, a plugin's own views for its files. Next view in the tree's menu and v do the same; the SVG choice stays for the next SVG. A diff stays a diff.

Closes #32
Part of #4

🤖 Generated with Claude Code

…shows its source

An .svg with an <svg> tag whose size can be read previews as the picture, drawn by macOS sips like
the other images that are not PNG: no new dependency, and the server's sandbox already allows it,
with networking denied. The size comes from width and height (px, in, cm, mm, pt, pc) or the
viewBox, so the 50-megapixel guard applies; an SVG whose size cannot be read shows its source.

The preview's header names the views of a file, the one shown in bold, and a click on another picks
it: Picture and Source for an SVG, a plugin's own views for its files. Next view in the tree's menu
and v do the same; the SVG choice stays for the next SVG. A diff stays a diff.

Closes #32
Part of #4

Co-Authored-By: Claude <noreply@anthropic.com>
@nyxene
nyxene merged commit 9af1131 into master Oct 28, 2026
1 check passed
@nyxene
nyxene deleted the feat/32-svg-preview branch October 28, 2026 13:08
nyxene pushed a commit that referenced this pull request Oct 28, 2026
Release pull request, maintained by release-please. Merging it creates
the tag and a draft GitHub release; then run `scripts/publish-binary.sh
vX.Y.Z` from a terminal to attach the macOS binary and publish the
release.
---


## [0.19.0](v0.18.1...v0.19.0)
(2026-10-28)


### Added

* a PDF previews as its first page, with its page count
([#167](#167))
([cb8322d](cb8322d))
* a tab nobody named shows what runs in it, and a space holds nine tabs
([#168](#168))
([8b9f799](8b9f799))
* an SVG file previews as its picture, and a click in the header shows
its source ([#164](#164))
([9af1131](9af1131))
* review an agent's changes and send it comments on their lines
([#162](#162))
([626797a](626797a))


### Fixed

* every click target shows the hand, the New space path the text cursor,
and a picture goes while a window is open
([#166](#166))
([e2838bd](e2838bd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

SVG files preview as images

1 participant