Ooker
March 21, 2022, 4:34pm
1
For example, I have a key with these values: to do, doing, done. Every time I change the value, I want it to it automatically add a metadata with the current date as the value. For example, if I change from to do
to doing
, then the metadata will be:
time:
doing: 2022-03-21
If I change from doing
to done
, it will be:
time:
doing: 2022-03-21
done: 2022-03-22
Is it possible?
You can def do this with the MetaEdit API.
I did something similar and explained it in this post, hope this might help you out
What I did is basically add a emoji to my frontmatter habits to finish them off in my daily notes using a button (buttons plugin)
Because I want it clean and automatically with buttons since you can create them anywhere, there’s quite a lot to it.
You can check it out here:
You can use the metaedit plugin.
I made a script where it updates the frontmatter and “completes” a habit by adding a “:heavy_check_mark:” emoji. The script takes a completed “true” and “false” argument: it removes this “:heavy_check_mark:” emoji from the frontmatter. I create 2 templater notes so I can tie those to a button from the buttons plugin.
Perhaps my code can help you out for your project:
Frontmatter in my daily note:
---
habits:
- uhive::
---
Templater notes
Change Metadata …
system
Closed
June 21, 2022, 12:32pm
3
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
Ooker
July 25, 2022, 5:06pm
5
Is it possible to have the fields in inline syntax?