anomalyco / anomalyco/opencode

[FEATURE]: markdown preview of project files in the TUI

Open
#43,598 2 comments 1 reaction 1 assignee View on GitHub

@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 /preview again; new keybind tokens preview_toggle / preview_close default 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.