Records v0.3 as delivered in core (host-tested, on-device smoke-test pending) and notes the known dot-repeat limits. Also reorders the plan so the Status block follows the macroplan source.
24 KiB
Macroplan — version details
Frequent releases. Each version is a usable artifact, not a checkpoint.
This file holds the macroplan source block (below) and the per-version scope.
The user-facing requirements and engineering targets each release feeds into are
tracked in qfd.md.
Macro-plan
Macroplan source — paste into the macroplan app to render the week-by-week
view. original dates are the June 2026 baseline and never move; slips get
appended as reestimates, per-item actuals live in the Status block below.
title = "Typoena — macro plan"
[[feature]]
name = "v0.1 it writes, it pushes"
start = 2026-06-01
original = 2026-06-29
delivered = 2026-07-11
learning = "Shipped 12 days late. The long pole was hardware bring-up risk, not the editor: SD on a shared SPI bus (resolved by moving it to its own SPI3, ADR-012) and on-device git (gix killed, pivoted to libgit2 as an esp-idf CMake component, ADR-004). Splash landed as a vector wordmark, not the planned 1-bit bitmap — the asset-embed/blit path is deferred to v1.0."
[[feature]]
name = "v0.2 navigation"
start = 2026-06-29
original = 2026-07-20
delivered = 2026-07-11
learning = "Delivered 9 days early. Motions/modes, Ctrl-d/u, the UTF-8 buffer, and the absolute line-number gutter all landed 2026-07-11; the last gate, Spike 13's on-panel gutter refresh check, confirmed a single-line edit repaints only rows at/below it with no extra full refresh. Relative line numbering was dropped as an e-ink ghosting cost with no proportionate gain."
[[feature]]
name = "v0.2.5 international input"
start = 2026-07-20
original = 2026-08-03
delivered = 2026-07-11
learning = "Delivered 23 days early — ahead of its own start window. Dead-key accent composer in the keymap crate (US-International, à é ê ë ñ ç), editor buffer made UTF-8-correct, typed on the bench with no panic. The side-panel pending-accent marker was dropped by decision: at typing speed it is stale before the ~630 ms panel repaint, so it conveyed nothing. Bonus: physical Esc (HID 0x29) remapped to backtick/tilde so code fences + grave/tilde accents work on a 60% board without a Fn layer."
[[feature]]
name = "v0.3 editing"
start = 2026-08-03
original = 2026-08-24
delivered = 2026-07-11
learning = "Core complete 44 days early, host-tested. Register + yank/paste (yy/p/P), snapshot undo/redo (u/Ctrl-r, bounded 100 groups in PSRAM), and keystroke-recorded `.` repeat all landed 2026-07-11; the d/c operator grammar + text objects were already done ahead of schedule. Firmware version bumped to 0.3.0. On-device smoke-test still pending — pure editor-core, no new render surface."
[[feature]]
name = "v0.4 visual + ex"
start = 2026-08-24
original = 2026-09-07
status = "on-track"
note = ": command-line mechanism and :fmt done early; Visual mode not started."
[[feature]]
name = "v0.5 palette + multi-file"
start = 2026-09-07
original = 2026-09-28
note = "Also adds the git-tracked .typoena.toml preferences file (save_on_idle, format_on_save, auto_sync cadence, line_numbers) and the palette `>` command mode that edits it live."
[[feature]]
name = "v0.6 markdown"
start = 2026-09-28
original = 2026-10-12
status = "on-track"
note = "Render affordances done early; 80-col ruler + snippet engine (added 2026-07-08) remain."
[[feature]]
name = "v0.7 search + git"
start = 2026-10-12
original = 2026-11-02
[[feature]]
name = "v0.8 battery + sleep"
start = 2026-11-02
original = 2026-11-30
[[feature]]
name = "v0.9 robustness"
start = 2026-11-30
original = 2026-12-28
[[feature]]
name = "v1.0 polish"
start = 2026-12-28
original = 2027-01-25
[[milestone]]
name = "MVP ships"
week = 2026-06-29
requires = ["v0.1 it writes, it pushes"]
Status — synced 2026-07-11
The editor core has been built 2–3 versions ahead of the device
releases, and is now extracted into a host-testable editor crate (plus
a display crate for the panel framebuffer) so cargo test exercises it off the
xtensa target. v0.1 shipped 2026-07-11 (late against the 2026-06-29
baseline): SD storage, save, and git publish are all wired into the app binary
and hardware-verified (:sync commits on the SD /sd/repo and pushes to a
test repo), and the boot splash (Spike 9) is confirmed on the panel — a
vector typoena-in-a-circle shown at startup while the SD mounts, then the
editor comes up. Cold boot verified at 4258 ms (power-on → cursor,
2026-07-11; 742 ms under the ≤ 5 s gate). It first measured ~5.5 s; the fix was
to bring the editor up with a full-area partial (~630 ms) instead of a second
full refresh (~1.9 s) — panel confirmed clean, no ghosting. The 1-hour soak is
attested from real use; the remaining post-ship acceptance checks are power-pull
recovery, 1000-word no-drop, and Ctrl-G's not-yet-built pull-then-retry
(→ v0.9). v0.2 navigation is COMPLETE 2026-07-11 — Spike 13's on-panel gutter
refresh check passed (single-line edit repaints only rows at/below it, no extra
full refresh), closing the last gate. v0.2.5 international input is
hardware-verified (2026-07-11), and v0.3 editing is complete in core the same
day (register + yank/paste, snapshot undo/redo, . repeat — host-tested,
on-device smoke-test pending); the firmware crate is bumped to 0.3.0. Most of
v0.6 Markdown also already runs. Version numbers track shippable device releases,
not raw core progress — the 0.3.0 bump reflects the v0.3 feature set being met.
Marks: [x] done in core · [~] partially done · [ ] not started. An
inline (✓) marks the done half of a split item.
v0.1 — MVP: "it writes, it pushes" — [x]
The minimum thing that justifies the hardware existing. Full design: product · technical.
Status: SHIPPED 2026-07-11 (late vs the 2026-06-29 baseline). Core editing +
partial refresh run on device; SD mount + save are wired into main.rs
(Spike 3 resolved — a genuine ≤32 GB card mounts, verified on its own SPI3 host
per ADR-012); git publish is wired (:sync → commit + fast-forward push on
the SD /sd/repo, hardware-verified against a test repo); and the boot splash
(Spike 9) is confirmed on the panel — Frame::splash
shows a vector typoena-in-a-circle at startup while the SD mounts, then the
editor comes up. Cold boot verified at 4258 ms (power-on → cursor, 2026-07-11; 742 ms under
the ≤ 5 s gate). It first measured ~5.5 s; the fix was to bring the editor up
with a full-area partial (~630 ms) instead of a second full refresh (~1.9 s) —
panel confirmed clean. The 1-hour soak is attested from real use; the remaining
post-ship acceptance checks are power-pull recovery, 1000-word no-drop, and
Ctrl-G pull-then-retry (→ v0.9) — see
product → acceptance.
- ESP32-S3 boots (✓); e-ink shows Typoena splash (✓ Spike 9, confirmed on panel 2026-07-11); boot status surfaces via the panel snackbar (no serial on device)
- USB host enumerates the Nuphy, key events reach the editor (Spike 4)
- One hard-coded file (
/sd/repo/notes.md) opens on boot — wired inmain.rs(boot_storagemounts the SD and loads the note; a missing card / repo / unreadable note halts with a panel message). The card is pre-seeded from a computer (just initcopies a full clone to/sd/repo+ writes config), never cold-cloned on device — see note. - Insert-only editing, backspace, enter, arrow keys — modal editor overshot this early (see v0.2)
- Line wrap, no line numbers yet — soft-wrap done early (see v0.6)
- Save to SD via
:w(and:sync) — wired inmain.rsthrough thepersistencemodule's atomic write (unlink-then-rename +*.tmpboot-recovery) - [~] Wi-Fi credentials + remote URL + PAT + author: today baked into the binary
via
env!()(no NVS, no on-device provisioning UI in v0.1). Migrating to/sd/typoena.confon the card, provisioned byjust provision(orjust initfor a fresh card) from the samefirmware/.envthe build uses (minimum input — rotate the PAT or switch networks without a reflash, no card re-copy). Firmware to read it at boot instead ofenv!()— the git-publish wiring landed with baked config (2026-07-11); thetypoena.confmigration itself is deferred to v0.9 (on-device provisioning). - Publish on
:sync(the editor's command; originally planned asCtrl-G): format (:fmt, whenformat_on_save) → save → stagenotes.md→ commit with a timestamp message → fast-forwardpush; on a rejected push, fetch + reconcile then retry once (no-op short-circuit when the tree is unchanged). Wired into the editor and hardware-verified 2026-07-11 —firmware::git_syncopens the SD/sd/repo, runs on a dedicated 96 KB git thread with lazy Wi-Fi, and pushes over mbedTLS HTTPS+PAT; the panel snackbar showssynced <oid>/up to date/sync failed. (Interrupted-push auto-retry deferred to v0.9.) - Split the display into a writing column (60 cols) + a side panel
(~30 cols at FONT_6X10) for metadata — the surface every later panel
feature writes to. Built in the
editorcrate (draw_panel): a full-height divider at x=600, with the panel currently showing the word count, the mode indicator, a NO-KBD flag, and a transient save/publish snackbar (below). Later fields (filename, clock, Wi-Fi, battery) add to the same surface. Defined inCONTEXT.md§ Screen regions and product § Screen layout. - Snackbar — a transient side-panel notice for host events (added
2026-07-11). On-device there is no serial log, so boot posts
loaded <name>(the note's filename without suffix),:wpostssaved/save FAILED - retry :w, and:syncpostssyncing...then the push result (synced <oid>/up to date/sync failed). Set viaEditor::set_notice; cleared on the next keystroke rather than a timer — a timed auto-dismiss would cost a ~630 ms full-area e-ink flash purely to erase text, which the panel deliberately avoids (cf. the dropped pending-accent marker in v0.2.5). - Partial refresh on edits (✓ Spike 5); save wired (full-area partial
repaint on
:w)
Out of scope: Vim, palette, multiple files, branches, conflict handling.
v0.2 — Vim navigation — [x]
Status: COMPLETE 2026-07-11. Navigation done in core; the UTF-8-correct
buffer and Ctrl-d/u half-page scroll landed and are hardware-verified,
and the absolute line-number gutter is built, host-tested, and confirmed
on the panel (Spike 13) 2026-07-11 — a single-line edit repaints only the rows
at/below the change and forces no extra full refresh. Shipped early beyond scope:
a read-only View mode and the full d/c operator + text-object grammar
(see v0.3 / v0.4).
- Mode state machine (Normal / Insert / View), mode indicator in the status strip
- Movement:
h j k l,w b e,0 $,gg G,Ctrl-d Ctrl-u.Ctrl-d/ustep display (soft-wrapped) rows, not logical lines — half a page is half the visible window however prose wraps; decoded asHalfPageDown/Upintents in the keymap, caret moves and the viewport follows. i a o O Ato enter InsertEscreturns to Normal- Line numbers in the left gutter: absolute, built + host-tested
2026-07-11, confirmed on the panel (Spike 13) 2026-07-11 — numbered on a
logical line's first display row, blank on wrapped continuation rows; the
gutter width tracks the buffer's line count (2 digits + separator, widening
past 99 lines) and steals its columns from the soft-wrap. Always on in
v0.2; the on/off toggle rides the v0.5
.typoena.tomlprefs (below). Relative numbering was dropped (2026-07-11): renumbering the whole gutter on everyj/kburns the e-ink ghosting budget for no proportionate gain, whereas absolute renumbers only the rows below an edit — the on-panel check confirmed a single-line edit repaints only rows at/below it with no extra full refresh. - Groundwork — UTF-8-correct buffer: caret motions and edits step by
character, not byte (dropped the ASCII == byte-offset assumption), so every
motion stays correct with accented input. Done 2026-07-11 alongside
extracting the editor into a host-testable crate — char-step
motions/deletes, byte-vs-char split in
layout/caret_rc,word_end/defixed; 15 host tests. Render font is ISO-8859-15 (Latin-9), so accented glyphs display.
v0.2.5 — International input — [x]
Status: DONE in core, hardware-verified 2026-07-11 (typed ç é è ñ on the
bench, no crash). US-International dead-key accent composition lives in the
keymap crate — a Composer downstream of the decoder — wired into
usb_kbd.rs so the editor still receives a single Key::Char. Builds on the
v0.2 UTF-8-correct buffer and the ISO-8859-15 render font. Host-tested.
- Dead keys — grave, acute, circumflex, diaeresis, tilde — compose with
the next letter: à é ê ë ñ, ç (via
'+c), both cases '+space emits a literal apostrophe (the everyday apostrophe path); a dead key followed by a non-composing letter emits the accent then the letter- A non-character event (Enter, Backspace, arrows) flushes any pending accent as its literal first
Pending-accent indicator in the side-panel status strip— DROPPED (2026-07-11 decision): at typing speed it would be stale before the ~630 ms panel repaint, so it conveys nothing. Left unbuilt on purpose.- Bonus (2026-07-11): the physical Esc key (HID 0x29) now types
`/~— Esc comes from the Caps tap — so grave/tilde accents and Markdown code fences are reachable on a 60% board without a Fn layer.
v0.3 — Vim editing — [x]
Status: COMPLETE in core 2026-07-11, host-tested (64 editor + 28 keymap
tests). The three remaining pieces landed together: a single unnamed register
with y/yy/p/P (and x/d/c filling it, so dd…p moves a line),
undo/redo (u/Ctrl-r, snapshot-based, bounded to 100 groups in PSRAM — a
whole Insert session undoes as one group), and . repeat (keystroke-recorded,
so it replays an insert session like ciwfoo<Esc>). The d/c operator grammar
and text objects had already landed ahead of schedule. Pure editor-core work,
riding the already-verified draw/refresh path; on-device smoke-test pending
(nothing new to render, so low risk).
x dd,dw dd d$(✓);yy p P(✓) and.repeat (✓) — register + a keystroke-recorded last-change both landed 2026-07-11- Undo / redo (
u,Ctrl-r) — snapshot history bounded to 100 groups in PSRAM; one Insert session = one undo group - Numeric prefixes (
3dd,5j) - Ahead of schedule:
cchange operator + text objects (ciw,di(,ca", … — inner/around, nesting-aware)
Known limits (deferred): . drops a leading count (3x then . deletes one;
a count inside an operator like d2w is kept); no named registers; . after an
aborted operator (d<Esc>) is a no-op.
v0.4 — Visual mode + ex commands — [~]
Status: the : command-line mechanism is built (Command mode + status-strip
echo), but only :fmt exists — :w :q :wq :e remain. Visual mode is not
started.
DECISION (2026-07-07): v/V = Visual selection (vim-standard). The
read-only View (reading/scroll) mode currently bound to v/V moves off
those keys and gets its own trigger (exact key TBD when Visual lands). View mode
stays — it just frees v/V for Visual.
- Visual char (
v) and line (V) modes,y d con selections - [~]
:command line (mechanism ✓;:w/:wq/:xsave,:fmt/:sync/:glwired;:e <path>remains,:qdeliberately dropped — nothing to quit to). Command-line editing added 2026-07-11: Ctrl-W deletes the previous word, Cmd-Backspace clears the line. - Ahead of schedule / unscheduled:
:fmtMarkdown formatter (table alignment, blank-line collapse, trailing-whitespace strip)
v0.5 — File palette + multi-file — [ ]
Status: not started (Spikes 11 + 14 retire the panel-mechanism and buffer-lifecycle risk first).
Ctrl-Popens fuzzy file palette over both/sd/repo/and/sd/local/, with a scope marker (e.g.[git]/[local]) per result- Open, switch, close buffers (keep ≤ 3 in memory)
:eand palette share the same recent-files list:enewcreates a new file — prompts for scope (tracked vs local)- Delete a file — removes it from the SD card; for a Tracked file the
removal reaches the next
Ctrl-GPublish's staged set (git rm/add -Asemantics, not plaingit add .); a Local file is just unlinked Ctrl-Gis disabled / hidden when the current buffer is local-scope- The side panel briefly shows file count on
Ctrl-Gwhen the publish bundles more than one dirty Tracked file (e.g."publishing 3 files: abc1234"), so workspace-scoped behaviour stays visible to the user - Preferences file
/sd/repo/.typoena.toml— a git-tracked, hand-editable TOML file for editor behaviour, deliberately distinct from the/sd/typoena.confcard secrets (Wi-Fi / PAT / remote / author, gitignored, never committed — see v0.1). Read at boot; a missing file or key falls back to the defaults below. Keys:save_on_idle(bool, defaulttrue) — auto-save the current buffer on the existing idle pause (the ≥ 1 s typing-pause the panel already uses for its refresh), so:wbecomes optional rather than required.format_on_save(bool, defaulttrue) — run:fmt(table alignment, blank-line collapse, trailing-whitespace strip) on the buffer before it is persisted, so:syncis fmt → save → commit → push and:wsaves formatted. Implemented in-core 2026-07-11 (Editor::format_on_save, default on); this key will drive it. Open question: withsave_on_idlealso on, this reformats on every idle pause — reflowing tables / collapsing blanks mid-session. Consider limiting fmt to explicit:w/:syncand leaving the idle auto-save unformatted.line_numbers(bool, defaulttrue) — show the absolute line-number gutter (built always-on in v0.2). Off reclaims the gutter's columns for text; the palette> line numbers: on/offcommand toggles it live.auto_sync(duration string, default"10m";"0"/ omitted disables; min clamp ~"2m"so a palette typo can't drain the battery) — a max-staleness cap, not a wall-clock timer: opportunistic, rate-limited Publish. Push when already awake + dirty (coalesced into the idle-pause, ≤ once perauto_sync) and once on the way into sleep if dirty; never wake from deep sleep purely to sync. Wi-Fi energy is a1/Tcurve whose knee sits at 5–10 min, andsave_on_idlealready owns local data safety — so 10 min halves the sync energy of a 5-min default for no real risk. Full derivation:tradeoff-curves/wifi-auto-sync.md. The schema + defaults live here in v0.5; the periodic side rides the better-git work (v0.7) and must interact with light / deep sleep (v0.8).- Open question: because the file is committed, these prefs sync to
every device that clones the repo — a per-device sync cadence may
instead want a card-local override (in
typoena.conf). Decide before build.
- Palette command mode — typing
>at theCtrl-Ppalette switches it from file search to a command list (VS Code-style). The v0.5 commands edit the.typoena.tomlprefs above — e.g.> save on idle: on/offand> auto sync: 10m— writing the value back to the file and applying it live. This command list is the discoverable surface that later actions (:fmt, theme, font) also register into.
v0.6 — Markdown affordances — [~]
Status: render affordances done early; the 80-col ruler and the snippet engine remain (snippets are net-new scope, added 2026-07-08).
- Heading lines bolded in render (faux-bold double-strike)
- List continuation on Enter inside
-/1.(with empty-item exit) - Soft-wrap at word boundaries
- Optional column ruler at 80
- Snippets — trigger-driven text expansion for Markdown authoring
(Zed-inspired, but no completion popup: e-ink's ~630 ms refresh rules out
a live filtering menu, and it fights the distraction-free premise). Shape,
mirroring the existing
list_markerinsert-transform:- Tab in Insert mode triggers expansion: if the word immediately before
the caret matches a snippet prefix, expand it; otherwise insert spaces
as today (
expand_snippet(word) -> Option<(body, stops)>, alongsidelist_marker). - A snippet body is literal text plus numbered empty tab stops
$1 … $nand a final$0. There is no placeholder text (${1:label}) — the editor has no selection/overtype model, so a placeholder would just be text to delete. There are no dynamic or computed values either (e.g. nodate— there's no RTC; the wall clock is valid only after Wi-Fi+SNTP, so it'd stamp 1970 on a cold boot). - After expansion the caret lands on
$1; Tab advances to the next stop, forward only (no Shift-Tab). Stored stop offsets shift with edits at the caret (all pending stops are always after it). The session auto-aborts on Esc, a mode change, or a motion that leaves the stops. - On a typing pause (same throttle as the insert cursor / word-count refresh — the panel never repaints per keystroke), if the word before the caret is a snippet prefix, the side panel shows the hint (the target expansion). Quiet while typing; the hint appears on pause.
- The snippet table is hard-coded in the binary to start; a git-syncable
file on SD (
/sd/repo/.snippets) is a later option, deferred while SD is still blocked. - Starter set: link
[$1]($2)$0, image$0, fenced code block, etc.
- Tab in Insert mode triggers expansion: if the word immediately before
the caret matches a snippet prefix, expand it; otherwise insert spaces
as today (
v0.7 — Search + better git — [~]
Status: the :gl pull command landed in the editor (2026-07-11,
host-tested) — Effect::Pull + a firmware stub; the on-device fetch +
fast-forward is still to build. Search not started.
/forward search,n N- [~]
:gl— pull: fetch + fast-forward only, refuse on divergence and surface it (renamed from the planned:Gpull). Editor command +Effect::Pulldone 2026-07-11 (host-tested); the git-thread fetch/fast-forward ingit_syncremains (only push is wired today).
v0.8 — Power: battery + sleep — [ ]
- Measure idle / typing / push current draw on bench
- 18650 + IP5306 charge board, soft power switch
- Light sleep on idle > 30 s (keyboard interrupt wakes)
- Deep sleep on lid close (reed switch); restore cursor + buffer
- Battery indicator in the side panel
v0.9 — Robustness — [ ]
- Crash-safe writes (write to
.tmp, fsync, rename) - Recover from interrupted push (re-attempt on next save)
- SD card removal / reinsert handling
- Wi-Fi reconnect with backoff
- On-device provisioning + settings screen: SSID, PAT rotation, default remote, commit author (replaces the v0.1 dev-only NVS-flashing path — first release usable by someone who is not the firmware author)
v1.0 — Polish — [ ]
- Boot time ≤ 3 s to usable cursor — currently ~4.26 s; the ~1.9 s cold-boot
full refresh is a hard e-ink floor, so ≤ 3 s is marginal (see
notes/boot-time-budget.md) - Font selection (at least one serif + one mono) with adjustable font size, switchable at runtime and persisted across reboots
- Theme: light / dark (inverted e-ink), switchable at runtime and persisted across reboots
- Enclosure design files in
hardware/ - User guide
v1.x — Stretch / nice-to-have
- 10.3" panel upgrade via IT8951
- Multiple remotes / repos
- Stats: words today, streak
- BLE-HID fallback for wireless keyboards