How to Create a Life Progress Bar in Obsidian Using Template Variables

preview_player
Показать описание
Ever wonder how to add a life progress bar to your Daily Note template in Obsidian that uses a date variable template for historical integrity instead of pulling in the current date/time every time you look at it?

In this video, I'll show you how to use a template variable in a life progress bar just like everything else you might want to add to your Daily Note template.

0:00 - Introduction
0:24 - Memento Mori
2:09 - Life Progress Bar in Obsidian
2:45 - Customizing the Code
3:40 - Dataview Settings
4:46 - Daily Note Settings
5:17 - Template Snippet
5:58 - Obsidian University Starter Vault
6:41 - Summary

WANT TO MAKE MORE OF YOUR NOTES & IDEAS?

WANT TO SHORTCUT THE OBSIDIAN LEARNING CURVE?
Рекомендации по теме
Комментарии
Автор

This is such a weird wild encapsulation of my interests. Ty for sharing!

Fawstah
Автор

Thanks for this ... was exactely what I was looking for

OlofHervieu
Автор

For some reason the date variable wasn't being updated when I applied the template to the daily note. So, I made an adjustment to how I got the date.

Because the daily note's name also has the full date in the same format YYYY-MM-DD, I first got the file name in a variable and then transfered that to the today variable. This is what it looks like:

const fileName = dv.current().file.name;
const today = dv.date(fileName);

After that, the rest of the code block worked just fine.

EduardoCarrilloNET
Автор

hi my friend.
the template only worked with YYYY-MM-DD. Is it possible to exchange and use DD-MM-YYYY? I changed it but it didn't work, despite the date of the plugins being the same.

darkvoid--
Автор

I am not finding the specific code in your template folder. Maybe I'm not seeing what it is called?

AndrewBloch-uh
Автор

Not "momento" but MEMENTO" ...
Momento is a short unit of time.
Memento is "to remember".

Two different things.

ultimathule