Split the Swift files over 1,000 lines !234

merged merged by cmc on 2026-10-11 04:15 UTC · krz/orgstar:file-splits into main

Discussion

cmc

docs/plans/2026-10-10-file-splits.md, carried out. Closes #7.

Move-only splits, one commit per source file: ContentView, OrgEditor, MobileEditor, Babel, Presets, Vim, AgendaView, TableFormulas, OrgList. Members that moved code reaches went from private to internal; nothing else changed. A line-by-line comparison of every Swift source against main, with access modifiers stripped, differs only in five MARK comments that now appear both beside the stored properties kept in OrgEditor and at the top of the matching extension.

Checked: swift test (685 tests) green after each step; the Mac app launched with the snapshot hook (editor with folds, drawer, block band; agenda window); the iOS app built with scripts/build-ios-app.sh. The iOS editor was not driven in the Simulator.

scripts/check-file-sizes.sh fails when a hand-written Swift file is over 1,000 lines; noted in docs/design.md under Testing.