summaryrefslogtreecommitdiff
path: root/AGENTS.md
diff options
context:
space:
mode:
authorcashmeredev <cashmere@autistici.org>2026-04-26 20:37:15 +0200
committerGitHub <noreply@github.com>2026-04-26 20:37:15 +0200
commit4dfd1df3bc1f936ff7119beceae22b19e0c728d3 (patch)
tree103e8d459f7f3a79dd7985f9b36f8ff263a672ad /AGENTS.md
parent7e4faffa32d6f0ef885fceb0a9ecd93b3fe5c43f (diff)
parentbaa6cf8cc43ce676b806db01e390668dc4aa6790 (diff)
downloadkitty-graphics-4dfd1df3bc1f936ff7119beceae22b19e0c728d3.tar.gz
Merge pull request #8 from cashmeredev/feat/typst-support
feat: add typst inline equation preview
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 62d8813..e5c07a6 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -48,6 +48,16 @@ TERM=xterm-256color emacs -nw -Q -l kitty-graphics.el \
# Then: C-c C-x C-v (org-toggle-inline-images)
```
+### Test typst inline equations
+
+```sh
+TERM=xterm-256color emacs -nw -Q -l kitty-graphics.el \
+ --eval "(kitty-graphics-mode 1)" tests/test-typst.typ
+# Then: M-x kitty-gfx-typst-preview
+# To clear: M-x kitty-gfx-typst-clear-preview
+# Requires the `typst` CLI on PATH.
+```
+
### Test text sizing (org heading scales)
```sh
@@ -241,6 +251,10 @@ Key design differences from images:
- **Limitation**: Sixel is 256 colors (vs truecolor on Kitty), stateless (re-emits on scroll)
- **Done**: LaTeX fragment preview in org-mode (#3)
- **Done**: doc-view / pdf-view-mode integration (#4)
+- **Done**: Typst inline equation preview (#5) -- `kitty-gfx-typst-preview`
+ scans `$...$' fragments in the current buffer or region, compiles each
+ via the `typst' CLI, and displays the resulting PNG inline. No advice
+ hooks; bind to a key or invoke via `M-x'.
- **Done**: Text sizing protocol for org heading sizes (OSC 66, Kitty >= 0.40.0)
- **Done**: Sixel backend with auto-detection (v0.3.0)
- **WIP**: Sixel image misplacement in org-mode (reported in foot terminal)
@@ -253,6 +267,8 @@ Key design differences from images:
for Kitty backend; foot/Konsole/xterm/mlterm/mintty for Sixel)
- **Required for Sixel**: ImageMagick (`magick`/`convert`) for encoding
- **Optional for Kitty**: ImageMagick for non-PNG formats and pixel-accurate sizing
+- **Optional for typst preview**: `typst` CLI on PATH (used by
+ `kitty-gfx-typst-preview`)
- **No external Elisp deps** beyond built-in `cl-lib`
## Versioning