okami.mom/albedo

git clone https://git.nkp.pet/okami.mom/albedo

nekomimi.pettui: one delimiter table for math, bytes.Cut over hand scans, and the fork's IndentWriter for list itemse4c3bd6

main
3 folders5 files

files

fonts/
src/
tests/
Cargo.lock25.1 KiB
Cargo.toml1.3 KiB
README.md606 B
example.png76.7 KiB
install.sh261 B

albedo-render

Turns part of a source file into pictures of the code, with syntax colors and line numbers, so the model can look at code the way a person does. albedo's view extension runs it when the model calls view_code or view_diff.

It colors the whole file, so a range that starts inside a comment or string still looks right. Long lines wrap at 79 columns with an arrow marking the wrap, and long ranges are split into several images.

Lines 86-104 of src/layout.rs, rendered; line 97 wraps

Install it with ./install.sh (needs cargo), which puts the binary in priv/bin.