A focused terminal reader for local Markdown, with link navigation and inline Unicode Mermaid diagrams.
make install
fons # README, or first Markdown file here
fons README.md
fons --theme catppuccin-mocha README.mdThe default is native, which preserves the terminal's existing palette. Gruvbox Dark and Catppuccin Mocha remain opt-in with --theme gruvbox-dark or --theme catppuccin-mocha; Bat follows the selected theme.
Or run without linking:
bun run start # auto-discover in current directory
bun run start -- README.md| Key | Action |
|---|---|
j / k, ↑ / ↓ |
Scroll one line |
Ctrl-U / Ctrl-D |
Scroll half a page up/down |
/ |
Live-search forward in rendered text |
n / N |
Repeat search forward/backward |
r |
Reload the current file |
Tab / Shift-Tab |
Jump to the next/previous heading or link |
j / k, arrow keys |
Move while a heading or link is selected |
Enter |
Open a selected link or finish a heading jump |
Esc |
Clear the selection or close the active panel |
l |
Toggle links from files in session history |
j / k, ↑ / ↓ |
Select links in the links panel |
Enter |
Visit the link's source file, then open it |
Backspace / Ctrl-P |
Back |
Ctrl-N |
Forward |
t |
Toggle the session-history strip |
h / k, l / j, arrows |
Select older/newer history entries |
Enter |
Visit the selected history entry |
Ctrl-W |
Remove the selected history entry |
s |
Toggle heading outline |
T |
Cycle themes for this session |
? |
Toggle the full bottom key legend |
q / Ctrl-C |
Quit |
The footer is minimal by default; press ? to show or hide the full key legend. On reader keypresses, fons detects whether the current file changed and adds file changed · r reload (or an unavailable-file warning) without replacing the last readable view. The links panel groups all links by unique file in timeline order and hides files without links.
Local Markdown links stay in fons; heading anchors jump within the document. HTTP and non-Markdown local links open through macOS. If multiple files are passed, the first opens immediately and the rest seed forward history.
Mermaid diagrams use grok-mermaid. Unsupported, invalid, or over-wide diagrams remain visible as source. Other fenced blocks are highlighted by Bat using the user's Bat configuration.