$ cat ~/map/pi-messages.md
pi-messages
Turns pi's markdown code blocks into rounded terminal cards with language icons, soft wrap, and keyboard-driven copy and insert.
extensions✓ Sep 21
Facts
- repository
- github.com/DarkKevo/pi-messages ↗
- GitHub Stars
- ★ 7
- Forks
- 0
- license
- —
- npm / mo
- —
- last push
- Sep 23, 2026
install
Run pi install git:github.com/DarkKevo/pi-messages and reload with /reload, or run the repo's install.sh to link a local clone into your pi extensions folder. Later updates come from pi update --extensions; removal is pi remove git:github.com/DarkKevo/pi-messages.## TL;DR
A pi extension that renders markdown code blocks as rounded terminal cards with Nerd Font language icons and soft-wrapped lines, adding keyboard-driven copy and insert shortcuts that keep box-drawing characters out of your clipboard.
## Key points
- $Clean copy by design: code lines carry no side bars, so triple-click or a mouse drag copies pure code, under a header with the language glyph or file path inside symmetric rounded corners.
- $Soft wrap, no truncation: overlong lines wrap through wrapTextWithAnsi, respecting indentation, background color, and syntax highlighting, so the code stays fully intact instead of ending in an ellipsis.
- $Two copy surfaces: Alt+C and /cc open a picker when several blocks exist, /cc all concatenates every real code block while diffs and patches are rendered but excluded, and /cc <n> copies block n directly.
- $Insert into the prompt: Alt+I and /ci list available snippets for pi's editor, /ci all inserts everything at once, and pastes longer than ten lines collapse to a compact placeholder automatically.
- $Theme-aware styling: the card background alpha-blends the active theme's toolSuccessBg at 50 percent toward the terminal background for a subtle translucent look, and the UI follows the active theme rather than a fixed skin.
## FAQ
Q Does /cc all copy diff blocks too?
No. Diffs and patches render as styled cards but are automatically excluded from the copy menu and from /cc all, since they are not executable code.
Q How do I try it without a permanent install?
The Git install is managed by pi, so pi remove git:github.com/DarkKevo/pi-messages undoes it cleanly; for development, the repo's install.sh detects a local clone and symlinks the extension into your pi extensions folder.
## References
## Related entries
$ pi-conversation-outline
Read-only outline rail for fullscreen: one tick per prompt, hover to preview, click to jump.
$ pi-open-tui
Polished terminal interface for pi: model/thinking header, runtime-aware footer, framed editor, turn metrics (TPS / TTFT / stalls / cost), and 50+ runtime detectors — all configurable from /open-tui.
$ pi-reverse
Fullscreen TUI extension that pins pi's input at the top and stacks Q&A pairs newest-first, question in view.
## Guides
Last updated: Sep 21, 2026