Skip to content
    ↑↓ select↵ openesc close
    dreamorosi

    Docview

    opencode-docview·v0.1.1·Git & VCS

    Markdown doc viewer side panel for the OpenCode TUI, with line numbers and GitHub-style range copying

    GitHub stars

    0

    Monthly installs

    603

    603 in 7 days

    Composite score

    37.1

    Multi-signal model

    Last commit

    3 days ago

    2026-10-17

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-docview@0.1.1"]
    }

    OpenCode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.

    Markdown doc viewer side panel for the OpenCode TUI, with line numbers and GitHub-style range copying.

    Requires OpenCode 2.x.

    Install

    Add it to ~/.config/opencode/cli.json and restart the TUI:

    { "plugins": ["opencode-docview"] }
    

    Use

    • /doc path/to/file.md or /doc @file opens a doc; /doc alone opens a picker.
    • Click or drag the line numbers to copy a range like #L3-L8. Shift-click extends it.
    • Frontmatter is dimmed and unnumbered, so L1 is the first line after it.
    • The panel reloads when the file changes.
    Key Action
    j / k, g / G Scroll, top / bottom
    s Rendered / source view
    y / esc Copy / clear selection
    o / r Open another doc / reload
    f / q Fullscreen / close

    <leader> left and <leader> right move focus between the prompt and the panel.

    Develop

    npm install
    npm run typecheck
    npm test              # unit tests (vitest)
    npm run test:render   # gutter layout against OpenTUI (bun)
    npm run build
    bun test/e2e/smoke.ts # real OpenCode TUI, needs opencode on PATH and a build
    

    License

    Apache-2.0

    Similar plugins