Gloss

Plugin reference

Each file is rendered by the first plugin that accepts it. Order matters: specific formats are tried before code, whose lexers accept almost any extension, and plain text is the catch-all.

PluginHandlesViewsAnchor
markdown.md, .markdownRendered, Sourceline
json.jsonRaw, Formattedline
csv.csv (comma-separated only)Table, Sourcecell
image.png, .jpg, .gif, .webp, .svgImageregion
audio.mp3, .wav, .ogg, .m4a, .flacPlayertime
video.mp4, .webm, .mov, .ogvPlayerregion_time
codeAnything chroma has a lexer forHighlighted sourceline
plaintextEverything elseTextline

Anchors

Media files cannot be re-located after an edit, so if the file changes, its region and time threads are orphaned. They stay visible and can be reopened.

Limits

Writing a plugin

Plugins live in internal/plugins/ and implement a small interface that returns one or more named HTML views. Line-addressable output follows the data-line attribute convention, which gives selection, highlighting, re-anchoring and MCP support for free. The repository's /new-plugin command scaffolds the renderer, tests and fixtures. See the checklist.