Yeah, sure.
Firstly I have a couple of tags in literally all my notes. Several of them are date based, to make it easy to find notes from a specific day, week or month. The Templater plugin creates 99% of my notes, but how you create them, and how you tag them otherwise, is irrelevant. For my habit tracking they are needed though.
I keep all my daily notes in a folder of my “inbox” folder, called “journal”. There I also file my daily/weekly notes in to subfolders per month (i.e. 202110 right now) when their time has passed.
This is what my YAML front matter (at the very top of the file) of a Daily note looks like:
---
uid: 202110140016
aliases: Thu Oct 14
tags: daily_note 20211014 2021-W41 2021-10 refile double_click_me
weekday: Thu
medicine: 🟩
thm-login: 🟩
eve-login: 🟥
push-ups: 🟧
write500words: 🟥
call-mum: 🟥
running: 🟥
apply-for-2-jobs: 🟥
---
As you can see I am using emojis for indicating status. They all default to “red_square” and then I change their state as I do my habits. On the topic of emoticons I can recommend the plugin Emoji Toolbar as well as the Emoji Shortcodes plugin, as it makes it even faster to do these things (less barriers is a good thing).
For my top habits I intend to do them on a daily basis, with the final three I actually aim to do them either “every third day” or “weekly”.
I denote partial success as red → orange → yellow → green (push-ups for example, I do 20x3 over a day at the moment, so I can keep track of where I am at).
None of the YAML front matter is visible in preview mode of the daily note, it is only visible in edit mode. I could obviously chose to show it in the Daily note too, but I often have both of them open at the same time anyways, and having it once on my screen is enough for me.
Then in my weekly note I have the following front matter and the dataview code snippet:
---
uid: 202110110014
aliases: 2021 - W41
tags: weekly_note 2021-W41 2021-10
---
```dataview
TABLE WITHOUT ID
weekday AS "Day",
medicine AS "💊",
thm-login AS "🔑",
eve-login AS "🚀",
push-ups AS "💪",
write500words AS "🖊️",
call-mum AS "📱",
running AS "🏃♂️",
apply-for-2-jobs AS "👨💼"
FROM "inbox/journal" and #2021-W41 and -#weekly_note
SORT file.ctime ASC
```
In my “journal” folder I only have the Daily, Weekly and Monthly Habit Tracker file for that month, apart from the filing folders for each month. Tomorrow I will move todays daily file (then yesterdays file) to the monthly filed folder. Keeps it orderly and neat, and dataview works recursively for all the subfolders of “inbox/journal” anyways, so it will not break.
The snippet above will create a table with emojis for the habits and emojis for the status, which means it will be neat and orderly there too.
That is it for the habit tracking really. It looks a lot longer/complicated when typing out the explanations like this in text, but the short version is: YAML front matter tags in Daily notes get extracted in the Weekly note, in a table, all using emojis.
I also notice I really should shape up on my running.