docs: wire DevLog into Obsidian daily notes and Dataview

This commit is contained in:
2026-10-19 10:02:18 +03:00
parent 581cc70020
commit e446ef5d25
2 changed files with 20 additions and 0 deletions
+10
View File
@@ -11,6 +11,16 @@ tags: [devlog]
## What I did
-
## Files touched today
```dataview
TABLE WITHOUT ID file.link AS "Note", file.mtime AS "Modified"
WHERE file.mtime >= date(this.file.name) AND file.mtime < date(this.file.name) + dur(1d)
AND file.path != this.file.path
AND file.folder != "TMP"
SORT file.mtime DESC
```
## Code review notes
Reviewer feedback and what I changed because of it.
+10
View File
@@ -8,6 +8,16 @@ Rust is learned through English, English through Rust.
- **Commit messages in English** — Conventional Commits format forces short, structured sentences.
- **DevLog entry** (10 min, last step of every session): 3–5 sentences about what you did,
in English. Don't translate from Russian in your head — describe the code, not the feelings.
Obsidian **Daily notes** is wired to this habit: folder `docs/devlog`, filename `YYYY-MM-DD`,
template `TMP/DevLog.md` — open today's note via the ribbon calendar icon or the command
palette ("Daily notes: Open today's daily note"). The config lives in `.obsidian/`
(gitignored), so re-create it manually on a new machine.
- Each DevLog auto-renders a **"Files touched today" table** (Dataview community plugin, v0.5.70,
installed in `.obsidian/plugins/dataview/`). The query filters by `file.mtime` inside the day
taken from the note's own filename, so every past entry shows its own day, not "today".
Caveat: `mtime` shows the *last* touch — a note edited again later moves to the newer day's
table. For the true change history of code files (`.rs` is not indexed by Dataview) use git:
`git log --since="00:00" --name-only --pretty=format:`.
- **Read error messages and docs in English only.** Never switch the compiler or Rust Book to Russian.
## Weekly habits