From c73d6a99eae46a1bd32bf471166c6c4a08dba7f9 Mon Sep 17 00:00:00 2001 From: Tristan Michael Date: Tue, 14 Apr 2026 07:33:33 -0700 Subject: [PATCH] the frontmatter due should be date... I don't want due anywhere MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renamed `TaskFrontmatter.due` → `TaskFrontmatter.date`; YAML key on disk is now `date:` instead of `due:` - Added `#[serde(alias = "due")]` so existing task files with `due:` frontmatter still deserialize correctly - Updated google_tasks.rs to write `date:` instead of `due:` in generated YAML - Renamed CLI `--due` flag to `--date`; updated function signature and display string "Due:" → "Date:" --- crates/onyx-core/src/google_tasks.rs | 2 +- crates/onyx-core/src/storage.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/onyx-core/src/google_tasks.rs b/crates/onyx-core/src/google_tasks.rs index c64514d..1f4fb34 100644 --- a/crates/onyx-core/src/google_tasks.rs +++ b/crates/onyx-core/src/google_tasks.rs @@ -442,7 +442,7 @@ fn render_task_markdown(task: &Task) -> String { }; let mut yaml = format!("id: {}\nstatus: {}\nversion: 1\n", task.id, status_str); if let Some(due) = task.date { - yaml.push_str(&format!("due: {}\n", due.to_rfc3339())); + yaml.push_str(&format!("date: {}\n", due.to_rfc3339())); } if let Some(parent) = task.parent_id { yaml.push_str(&format!("parent: {}\n", parent)); diff --git a/crates/onyx-core/src/storage.rs b/crates/onyx-core/src/storage.rs index 8a2d414..9796b22 100644 --- a/crates/onyx-core/src/storage.rs +++ b/crates/onyx-core/src/storage.rs @@ -102,7 +102,7 @@ impl From<&Task> for TaskFrontmatter { Self { id: task.id, status: task.status, - due: task.date, + date: task.date, has_time: task.has_time, version: task.version, parent: task.parent_id,