Skip to content

Let reading appearance follow the reader into text and HTML documents, not stop at the format line #44

Closed as not planned

Description

@bencode

Problem

Reading appearance controls stop at the format boundary. Markdown and Word share one appearance system — text size, width, and theme through the ReadingAppearancePopover wired in markdown-reader/standard-reader.tsx (docx renders through the same reader) — and PDF keeps its own separate preference store (pdf-reading-preferences.ts, key gamma-reader.pdf-reading-preferences, themes original | paper | dark). The plain-text and HTML readers have nothing: text-file-reader.tsx and html-reader.tsx contain no appearance reference at all, and the README's own support table records the asymmetry (their rows list preview and Source, no appearance).

A reader who sets a calm paper theme for an essay and then opens a .txt, .log, .json, or HTML export in the next tab gets a bright, default-styled, full-width page. The comfort setting they just expressed does not follow them, and there is no way to express it for exactly the formats — raw logs, long text dumps — that need line-length and size relief the most.

Proposal

  • Give the text and HTML readers the same appearance controls the Markdown reader already has — size, width, and theme — using the existing ReadingAppearancePopover machinery rather than a new one.
  • Prefer one preference set across the text-flow formats (Markdown, Word, text, HTML): a reader's theme choice should follow them across tabs. PDF may keep its own render pipeline, but its theme should default to the shared choice rather than a separate original starting point.
  • Theme applies to the preview surface only; the Source editor keeps its editing styling.

Goal

After this, text size, reading width, and theme set once apply to every text-flow format — a reader moving between an essay, its .txt appendix, and an HTML export sees one continuous reading appearance.

Verification

grep -q "appearance" ui-packages/web/src/features/reader/text-file-reader.tsx
grep -q "appearance" ui-packages/web/src/features/reader/html-reader.tsx
pnpm --filter @gamma-reader/web test --silent
pnpm check

Refs

  • ui-packages/web/src/features/reader/text-file-reader.tsx — no appearance reference today
  • ui-packages/web/src/features/reader/html-reader.tsx — no appearance reference today
  • ui-packages/web/src/features/reader/markdown-reader/standard-reader.tsx:31-52 — the controls to reuse
  • ui-packages/web/src/features/reader/pdf-reading-preferences.ts — separate per-format store today
  • README.md "Document support" — the table records the asymmetry (appearance listed for Markdown/Word/PDF, not text/HTML)
  • ui-packages/web/PRODUCT.md — "Keep reading as the largest and quietest part of the workspace"

Activity

  1. added
    enhancement
    source:scheduled
    on Sep 30, 2026
  2. bencode commented on Sep 30, 2026

    @bencode
    OwnerAuthor

    Independent review — posted by the scheduled issue-reviewer loop (a session separate from the one that files these issues), under the maintainer's standing instruction to evaluate, sharpen, or retire source:scheduled proposals.

    Evidence audit (against main@d28fe0b): all citations confirmed.

    • ✅ Appearance controls (size/width/theme via ReadingAppearancePopover) exist only in markdown-reader/standard-reader.tsx:28-52; text-file-reader.tsx and html-reader.tsx contain no appearance reference.
    • ✅ PDF keeps a separate store (gamma-reader.pdf-reading-preferences, themes original | paper | dark, default original — pdf-reading-preferences.ts:5-16).
    • ✅ "docx renders through the same reader" verified: docx-reader.tsx:81 renders StandardMarkdownReader.
    • ✅ README's support table records the asymmetry exactly as described (appearance on the Word/PDF rows, absent from text/HTML).
    • ✅ Sensor: lint passed; verify fails today as it should → stays open.

    Verdict: valid, keep open. Concrete comfort gap with a reuse-first fix (existing popover machinery), and the asymmetry is documented by the product's own table.

    One sharpening note (non-blocking): the two anchors test that controls exist in both readers, but not the proposal's deeper half — one preference set following the reader across formats. Per-format duplicated controls would pass. If cross-format continuity is the point, anchor the shared store too, e.g. grep -rq "useMarkdownReadingPreferences" ui-packages/web/src/features/reader/text-file-reader.tsx.

  3. bencode commented on Oct 2, 2026

    @bencode
    OwnerAuthor

    Not planned — discussed with the maintainer on 2026-10-01. Gamma Reader stays deliberately small: a feature lands only when no existing path covers the need. Appearance controls for plain text and HTML are a nicety; HTML documents carry their own styling, which a reader theme would fight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions