glimpse-changes
v0.5.0
Published
A CLI tool that renders Markdown with inline diffs into a native [Glimpse](https://glimpse.app) window, using a Critique-like theme.
Readme
glimpse-changes
A CLI tool that renders Markdown with inline diffs into a native Glimpse window, using a Critique-like theme.
What it does
- Parses Markdown and renders it as a styled HTML page
- Renders fenced
diffblocks with@pierre/diffs(split layout by default) - Executes inline command diffs (
!`git diff ...`) at render time so diffs always reflect the current working tree - Opens the result in a native Glimpse window via the
glimpseuipackage
Installation
npx skills add tanishqkancharla/glimpse-changesUsage
# Inline Markdown argument
bun scripts/render-md.ts "# My Report\n\nSome content"
# Pipe from a file
cat /tmp/session-diff-report.md | bun scripts/render-md.tsInline command diffs
In your Markdown, use the !`<command>` syntax to execute a shell command and render its output as a diff block:
## Changes to auth module
!`git diff -- src/auth.ts`Fenced diff blocks
Fenced code blocks with language diff (or any block whose lines match unified diff patterns) are also rendered with @pierre/diffs:
```diff
- old line
+ new line
```Assets
| File | Purpose |
|------|---------|
| assets/critique-base.css | Base Critique-style CSS |
| assets/critique-markdown.css | Markdown layout and diff shell styling |
| assets/jetbrains-mono-nerd.woff2 | Embedded monospace font (loaded as base64) |
