anomalyco / anomalyco/opencode
[FEATURE]: markdown preview of project files in the TUI
Open
@simonklee is already working on this.
Since Aug 20, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When working in the TUI, markdown files in the project (README, AGENTS.md, plan docs, command specs) are only ever viewable as raw source: no in-app rendered preview. Tables, headings and code blocks require mental parsing, and reading docs means switching editors.
I'd like a /preview command in the session view that:
- opens the fuzzy file picker (the same
fs.find-backed search as@-mentions) - renders the selected file as markdown in a right-hand panel next to the session
- is an inline split on wide terminals and a right-docked overlay on narrow ones (same layout pattern as the sidebar)
- closes by running
/previewagain; new keybind tokenspreview_toggle/preview_closedefault to unbound so users can map their own
Related: #38047 asks for markdown preview in the web/desktop file viewer. This request is specifically for the terminal TUI, where there is currently no file preview at all.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.