diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-25 22:23:43 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-25 22:23:43 -0500 |
| commit | 768c9c0122130d44e9243f22f7681677623b713a (patch) | |
| tree | 81d234dde8117dafb9fd67b4b90d918108801c9d /docs/multi-account-spec.org | |
| parent | c9ff295f02c355f889d1605853c148bbce404d52 (diff) | |
| download | pearl-768c9c0122130d44e9243f22f7681677623b713a.tar.gz pearl-768c9c0122130d44e9243f22f7681677623b713a.zip | |
feat(render): add the pure helpers for workspace-derived TODO keywords
Two pure functions behind the coming workspace-faithful #+TODO line. pearl--state-name-to-keyword slugifies a Linear state name to an Org keyword: upcased, non-alphanumeric runs collapsed to a single hyphen, edges trimmed, Unicode letters kept (so "Ångström" survives), and an all-symbol name falls back to TODO. pearl--derive-todo-line turns an ordered state list into the "ACTIVE... | DONE..." string: completed/canceled/duplicate types go after the bar, the rest before, order preserved within each side, de-duplicated by slug, with the hardcoded default returned for an empty list.
There's no caller yet -- the render integration and the gather pipeline land next. This is the derivation half of the keyword spec. The sync-back half it described is superseded by save-model-v2 (state reconciles at save) and the separate keyword-cycle task.
Diffstat (limited to 'docs/multi-account-spec.org')
0 files changed, 0 insertions, 0 deletions
