Outline editor: outliner interaction prototype #105

Closed
opened 2026-10-12 17:25:25 +02:00 by AlexKucera · 1 comment
Owner

Part of #97.

Question

How does editing an outline feel? Storage is ruled: nested-bullet markdown, type: outline. Prototype the keyboard-first outliner core in the editor column — Tab/⇧Tab indent-dedent, ⌥↑/⌥↓ move node with subtree, fold/unfold per node — referencing the feel of LogSeq and the Obsidian outliner plugin. Open question to answer by touching it: over the same plain NSTextView substrate (ADR-0010) or a dedicated outline view? Cheap rough prototype to click through; verdict feeds the build. Link the prototype as an asset.

[Generated by AI]

Part of #97. ## Question How does editing an outline feel? Storage is ruled: nested-bullet markdown, `type: outline`. Prototype the keyboard-first outliner core in the editor column — Tab/⇧Tab indent-dedent, ⌥↑/⌥↓ move node with subtree, fold/unfold per node — referencing the feel of LogSeq and the Obsidian outliner plugin. Open question to answer by touching it: over the same plain NSTextView substrate (ADR-0010) or a dedicated outline view? Cheap rough prototype to click through; verdict feeds the build. Link the prototype as an asset. [Generated by AI]
AlexKucera added the wayfinder:prototype label 2026-10-12 17:25:25 +02:00
AlexKucera self-assigned this 2026-10-12 17:57:38 +02:00
Author
Owner

Verdict: dedicated outline view — the B model, LogSeq semantics, block-granular selection, text-only undo

Decided live against the three-variant prototype (ref/prototypes/wf105-outline-editor-prototype.html, working tree, uncommitted pending authorization — same posture as #104), with screenshot comparison of B vs C.

Substrate: a real tree of blocks (variant B), not the shared text buffer (variant C). Storage unchanged per #101: plain nested-bullet markdown on disk — parse → tree → serialize. This specializes ADR-0010: prose editing stays TextKit2 mode B; the outliner is a dedicated block surface.

Why B won:

  • B's face is the preferred UI — chrome bullets + per-level vertical rules, exact at every depth. C's painted-over-a-buffer chrome could not match it (inconsistent dot sizes, missing markers at depth, no rules).
  • The costs that made B look expensive were scoped down by Alexander: block-granular selection is accepted (text-granular cross-block selection not needed); structural undo is dropped from v1 — text undo only.
  • Map-2 lock-in: the TOC "outline nodes as posts" vision needs node identity; blocks are that substrate natively.

Interaction contract for the build:

  • Tab/⇧Tab indent/outdent · ⌥↑/⌥↓ move node with subtree · fold/unfold = view state (variant A's fold-as-text-edit is the data-loss anti-example) · Enter splits at caret · Enter on empty node outdents · ↑/↓ hop visible blocks.
  • One promoted NSTextView over the focused row (native undo/IME), static text elsewhere — not one editor per row.
  • Fold keyed by node id (the prototype's line-index/text identity ceilings don't carry).

Carried risk: none substrate-level — B has no unknowns, only work. C's TextKit2 line-hiding spike is moot.

[Generated by AI]

## Verdict: dedicated outline view — the B model, LogSeq semantics, block-granular selection, text-only undo Decided live against the three-variant prototype (`ref/prototypes/wf105-outline-editor-prototype.html`, working tree, uncommitted pending authorization — same posture as #104), with screenshot comparison of B vs C. **Substrate**: a real tree of blocks (variant B), not the shared text buffer (variant C). Storage unchanged per #101: plain nested-bullet markdown on disk — parse → tree → serialize. This specializes ADR-0010: prose editing stays TextKit2 mode B; the outliner is a dedicated block surface. **Why B won:** - B's face is the preferred UI — chrome bullets + per-level vertical rules, exact at every depth. C's painted-over-a-buffer chrome could not match it (inconsistent dot sizes, missing markers at depth, no rules). - The costs that made B look expensive were scoped down by Alexander: block-granular selection is accepted (text-granular cross-block selection not needed); structural undo is dropped from v1 — text undo only. - Map-2 lock-in: the TOC "outline nodes as posts" vision needs node identity; blocks are that substrate natively. **Interaction contract for the build:** - Tab/⇧Tab indent/outdent · ⌥↑/⌥↓ move node with subtree · fold/unfold = **view state** (variant A's fold-as-text-edit is the data-loss anti-example) · Enter splits at caret · Enter on empty node outdents · ↑/↓ hop visible blocks. - One promoted NSTextView over the focused row (native undo/IME), static text elsewhere — not one editor per row. - Fold keyed by node id (the prototype's line-index/text identity ceilings don't carry). **Carried risk**: none substrate-level — B has no unknowns, only work. C's TextKit2 line-hiding spike is moot. [Generated by AI]
Sign in to join this conversation.