docs: wire DevLog into Obsidian daily notes and Dataview
This commit is contained in:
@@ -11,6 +11,16 @@ tags: [devlog]
|
|||||||
## What I did
|
## 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
|
## Code review notes
|
||||||
Reviewer feedback and what I changed because of it.
|
Reviewer feedback and what I changed because of it.
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,16 @@ Rust is learned through English, English through Rust.
|
|||||||
- **Commit messages in English** — Conventional Commits format forces short, structured sentences.
|
- **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,
|
- **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.
|
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.
|
- **Read error messages and docs in English only.** Never switch the compiler or Rust Book to Russian.
|
||||||
|
|
||||||
## Weekly habits
|
## Weekly habits
|
||||||
|
|||||||
Reference in New Issue
Block a user