Replies: 1 comment 2 replies
-
I am running into this now. I use this to set a tracking value in my daily notes, so I need to do it quite regularly. But doing it with Rudimentarily, it could be implemented similarly to #382 with a JSON object simply mapping the values. Not sure how to best implement the other features you mentioned here, like delete. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Obsidian
1.1.0
has a new metadata API that looks like an easy way to modify YAML frontmatter sections of e.g. the current file.Imagine the following YAML section:
I'd like to create a new output channel that would interpret the output content, letting it to perform different kinds of actions on the YAML frontmatter:
tags: [tag1, tag2]
-deletableValue
*overwrite*
(only applicable if defined as the first line of output). Meaningful if the aim is to write a new YAML section from a scratch.tags+: newTag
creates a new list item, or if it's a single value instead of a listmyValue+: " Added text."
These actions would turn the above shown YAML example to:
(
*overwrite*
is not taken into account.)The syntax is just a quick draft idea, I haven't made any decisions on it yet.
Multifile editing
Maybe also make it possible to alter multiple files' YAML sections? Syntax example:
Beta Was this translation helpful? Give feedback.
All reactions