From 11e01fb0ea593ad8dae0461042bc5f0e014d468b Mon Sep 17 00:00:00 2001 From: pdriggett Date: Thu, 18 Jun 2026 05:06:57 -0400 Subject: [PATCH] Add per-day practice sessions and customizable skills - Settings: edit default skills as individual rows with add, remove, and reset-to-default controls (replaces the free-text textarea) - Weekly note: seed each day with a practice Session carrying Dataview inline fields (skill::, minutes::, notes::); duplicate the Session bullet to log multiple sessions per day. Date is read from the day heading, so no hidden metadata is needed - Skip blank skills when rendering the weekly skill table - README: document the new settings controls and per-day session fields --- README.md | 18 +++++++++++++++++- main.ts | 10 ++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6484b6a..df5a040 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,23 @@ Each week is a single markdown note in your vault containing: - **Goals** for the week - A **skills × days** tracking table -- **Daily notes** sections, one per day +- **Daily notes** sections, one per day — each seeded with a practice **Session** + carrying [Dataview](https://github.com/blacksmithgu/obsidian-dataview) inline + fields: `skill::`, `minutes::`, and `notes::`. Duplicate the Session + bullet to log multiple sessions in a day. The day's date is in its heading + (`### Monday — 2026-06-15`), so a future Dataview query or heat-map can read each + session's date, skill, and minutes without any hidden metadata. + + Example day: + + ``` + ### Monday — 2026-06-15 + + - **Session 1** + - skill:: + - minutes:: + - notes:: + ``` ## Settings diff --git a/main.ts b/main.ts index cb21aa2..7d9ccaa 100644 --- a/main.ts +++ b/main.ts @@ -183,8 +183,14 @@ function renderTemplate( const dailySections = days .map((d, i) => { - const date = addDays(weekStart, i); - return `### ${DAY_NAMES[d]} — ${formatISO(date)}\n- \n`; + const date = formatISO(addDays(weekStart, i)); + return `### ${DAY_NAMES[d]} — ${date} + +- **Session 1** + - skill:: + - minutes:: + - notes:: +`; }) .join("\n");