Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/theme-authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ Scrolling inside it is yours to do. Return the function that unmounts (it may be
| `react` | `{ React, ReactDOM, createRoot }`: the host's React 19 (18 up to 0.8.5; `React.version` says which), for a theme that wants it without bundling its own. See [what React 19 no longer has](#what-react-19-no-longer-has). |
| `shortcuts` | The host's keymap: `register(actions)` adds your keys while you are mounted (listed in the `?` help and on `/shortcuts`, rebindable, dispatched by the host), `active()` is every binding in force. See [Keyboard](#keyboard). |
| `format.ago(iso)` | `"12 s ago"`, `"3 m ago"`, `"yesterday"`. |
| `format.duration(ms)` | `"0.4 s"`, `"4 m 12 s"`, `"2 h 05 m"`. |
| `format.duration(ms)` | `"<0.1 s"`, `"0.4 s"`, `"12 s"`, `"4 m"`, `"2 h 05 m"`, `"3 d"`: seconds show only in the first minute. |
| `format.title(session)` | The title, else the cwd's basename, else the id's head. |
| `format.repoBranch(session)` | `"org/repo @ main"`. |
| `format.monogram(harness)` | `"Cl"` for claude-code, `"Cx"` for codex, … |
| `format.harnessIcon(harness)` | `{ svg, name }`: the harness's monochrome mark as inline SVG (14 px, drawn in `currentColor`) with its human name, `"Claude Code"`; `null` for a harness without one (draw the monogram then). Optional in the type, so from TypeScript call it as `format.harnessIcon?.(harness)`. |

A `ThemeSnapshot`:

Expand Down