feat(outline): outline type + outliner — S3 (#109)
CI / ci (push) Canceled after 0s

Dedicated block surface (ADR-0013, #105 variant B): OutlineTree
parses/serializes plain nested-bullet markdown leniently and
normalizes on save; the outliner promotes one NSTextView over the
focused row with LogSeq-style keys (Tab/⇧Tab, ⌥↑/⌥↓ subtree move,
↑/↓ hop, ⇧↑/⇧↓ block selection, ⌘↑/⌥↓ fold, Enter split), folds
session-scoped by runtime node UUID. New Outline ⇧⌘N stages a
type: outline draft through the existing autosave/conflict
machinery; reading renders the serialized markdown unchanged.

Outline rows use the body face at its natural line box — the prose
CSS-1.8 lineHeightMultiple grew the focused row and detached the
bullet (test-pinned). Finish-audit fixes included: paste-multiline
sanitizing at setText, dead Enter disjunct, dead Row.path.

Closes #109
This commit is contained in:
AlexKucera committed 2026-10-15 13:09:31 +02:00
1 parent e55747e7fe
commit c23ee0f62f
21 files changed
+1809 -21

No files matched your search

+12
View File
@@ -111,6 +111,18 @@ nonisolated enum ProseTypography {
]
}
/// Outline rows (#109): the body face at its NATURAL line box — no CSS
/// 1.8 lineHeightMultiple. The outliner chrome (27pt bullet cells) assumes
/// one row height; a live-row fragment inflated by the prose multiple
/// grows the row, parks the glyphs at the fragment bottom, and detaches
/// the bullet. Editing parity lives in the FACE, not the leading.
static var outlineRowAttributes: [NSAttributedString.Key: Any] {
[
.font: bodyFont,
.foregroundColor: foregroundColor,
]
}
static var codeAttributes: [NSAttributedString.Key: Any] {
[
.font: codeFont,