inline field value change #162
mdelobelle
started this conversation in
Templates Showcase
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🚨Always backup your vault before testing
In my GTD system each task is a note
A task has some inline fields
key:: value
that I want to change quickly among a list of valuese.g. the status of the task that in my case is a tag within a list of tags for the possible statusses (Open, OnGoing, Complete...)
here is a template to quickly change the value of the inline field
☝️The regex will depend on the field that you want to modify and the pattern of the values that your are trying to catch.
You should replace
app.vault.modify(file, newContent)
byconsole.log(newContent)
while testing your template so as not to cause damage to your fileschange-status.md
Beta Was this translation helpful? Give feedback.
All reactions