Commit Graph
4 Commits
Author SHA1 Message Date
AlexKucera d7fd11cf0d chore(lint): repo-wide green becomes the contract
CI / ci (push) Canceled after 0s
Close the lint arc #194-#197: deliberate-style rule disables with
rationales (#194), filter-safe test renames + --test-case-name-format
preserve (#195), every surviving warning fixed through the sanctioned
lint-stable shapes (#196), and the docs now state the true contract
(#197): bare swiftlint . reports zero violations and swiftformat .
reformats nothing, while push gates stay scoped to the push's own
files (settled #190 design) — the pre-push hook's stale 'pre-existing
violations' rationale blocks refreshed, gate logic untouched.

Also in the sweep: quiesce the FSEvent-burst watcher race in
LibrarySearchTests (two rescans double-count one shared PostScanCache
miss; benign revision over-bump), pin the learnings scan's symlink-skip
contract (flip-verified — defended in depth by the lstat guard AND
contentsOfDirectory's own symlink refusal), reorder that scan's guard
so cheap rejections precede the directory listing, and park the roster
chmod window with a ceiling comment.

Finish-audit: 3 reviewers, 0 blocking; the one code finding was
disproved by probe (&& out-binds ?? — the guard was correct). Suite
693/693 via scripts/full-test.sh; swiftlint 0 violations; swiftformat
0/141; hook rig 23/23.

Closes #197
2026-11-17 16:29:46 +01:00
AlexKucera c23ee0f62f 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
2026-10-15 13:09:31 +02:00
AlexKucera 1f7557a2ed fix(editor): audit fixes — fence staleness, font caching, lint shrink (#77)
- HIGH: fence delimiter edits now restyle the whole document (delimiter
  count fingerprint in the coordinator; count moved = full re-attribute,
  caret preserved) — typing/deleting a ``` flipped every line until
  the match before
- derived fonts + measureWidth cached as nonisolated(unsafe) static let
  (were NSFontManager.convert per line per pass)
- h2/h3/h4 line height calibrated from their own face's metrics
- 7+ hashes fall to body (CommonMark cap); tab-indented heading marker
  dims the hash, not the tab
- intraword _ spans unclaim on reject so the fallback char-dim takes them
- shrink: fenceState reuses contentLines+classify (isDelim deleted),
  marker regexes as literals (helper + 2 lint disables deleted),
  charBefore/After via NSString, dead colors + forwarders deleted
- vacuous retrofit test replaced with a real one + fenceDelimCount test
2026-10-08 14:11:47 +02:00
AlexKucera 8fe5f48e0e feat(editor): reading-parity presentation for the editing surface (#77)
ProsePresenter rewritten to mirror the calm-ruled reading surface (#78):
- leading calibrated to CSS 1.8 via font metrics (not the raw number)
- heading ladder 30/22/19-w600, h4+ bold body, new h3/h4+/fence/blank kinds
- half-height blank separators (9pt)
- quotes secondary-ink + 20pt indent; fence interiors mono-14 on substrate
- inline traits: bold, italic (CommonMark intraword _ rule), code, links
  (label ink + underline, marks dim); list markers dim
- 11 new tests pin the ladder, blanks, quote, fence, traits
2026-10-08 13:33:21 +02:00