Skip to content

Templates

The Templates tab shows patterns mined by ZahirScan from the selected file — each row is a template pattern with a match count and placeholder examples.

Focus with t. Requires ZahirScan enrichment for that path. Same data in the TUI and the embedded web UI (ublx serve --features ui, v0.2.4+).

What fills the pane

SourceContent
Logs / repetitive textPatterns with [PLACEHOLDER] tokens and example values
Structured textRepeated headers / outlines as patterns
Other formatsWhatever ZahirScan put in templates[] — often empty; Metadata/Writing may still fill

Content comes from the snapshot’s Zahir JSON — not recomputed on every keypress. Schema: ZahirScan: Template mining.

TUI (v0.2.4+)

  • Patterns list with ×count; selection highlight on the pattern line only
  • Examples expand inline under the selected pattern (framed by horizontal rules)
  • Rules show / when the examples block can scroll
  • Shift+J/K (or Shift+↑↓) — previous / next pattern
  • Shift+B/E — scroll examples to top / bottom when ↑↓ appear

Web UI (v0.2.4+)

  • Accordion: expand several patterns at once
  • Filter box — substring match on pattern, placeholder names, and example values
  • Expand all / Collapse all (disabled when already fully expanded or collapsed)
  • Serve may attach parsed template_views on GET /entries/*path?zahir=1 — see CLI: ublx serve

When the tab is empty

UBLX · Nefaxer · ZahirScan