Documents

FormatExtensionsFormat spec
DOCX.docxOffice Open XML — ECMA-376
ODT.odtOpenDocument
RTF.rtfRich Text Format

Modes

DOCX / ODT (both ZIP-packaged) get three views, cycled with Tab:

  • Read (default) — styled body text. Headings render bold + themed; bold / italic / underline / strikethrough runs render via SGR; explicit run colors apply. Bulleted lists use a marker indented per nesting level. Embedded images surface inline as [Image: <basename>] placeholders. Tables flatten to |-joined rows. Width-aware word wrap re-runs on resize.
  • TOC — the raw ZIP file tree. Inspect inner XML parts and embedded media; Enter descends recursively. --extract word/media/imageN.png works as for any ZIP archive.
  • Info — title, author, subject, keywords, created / modified timestamps, paragraph / word / image counts.

RTF opens to Read and Info by default. When the file embeds images as \pict groups, a TOC view appears alongside, listing each embed; e / --extract pulls one out.

Caveats

  • DOCX lists currently render as flat bullets — numbering cascade resolution from numbering.xml is not implemented; everything with numPr shows as .
  • ODT's styles.xml inheritance chain isn't consulted in v1. Real-world ODTs from LibreOffice / OpenOffice dump all directly-used styling into content.xml's automatic-styles, which is what peek resolves.