Templater icon indicating copy to clipboard operation
Templater copied to clipboard

Merge properties in the template with properties in the note

Open Zachatoo opened this issue 1 year ago • 2 comments

The Templates core plug-in now merges the YAML properties in the template with the ones already in the note.

Template:

---
category: test
tags: 
  - test
---

Some test text

Note:

---
tags: 
  - draft
---
This is my text

When I apply the template, using the core plug-in, the text in the note becomes:

---
tags: 
  - draft
  - test
category: test
---
This is my text

Some test text

If I do the same with Templater, what I get is:

---
tags: 
  - draft
---
This is my text
---
category: test
tags: 
  - test
---

Some test text

Originally posted by @paolo-santucci in https://github.com/SilentVoid13/Templater/issues/1191#issuecomment-1741874483

Zachatoo avatar Oct 08 '23 19:10 Zachatoo

This would be a great improvement!

FeralFlora avatar Nov 08 '23 13:11 FeralFlora

https://forum.obsidian.md/t/new-properties-and-templater-prompts-and-commands/66425/9?u=briandbecsi

Here's your work around.

-Brian

brianbecsi avatar Nov 12 '23 02:11 brianbecsi