quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

[FEATURE REQUEST] Appending to existing file while considering the frontmatter

Open Moyf opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. For now, If I use QuickAdd to append some text to an existing note with frontmatter , using this option: image

It would just insert the text BEFORE the original frontmatter.. and then break the frontmatter . (Frontmatter needs to be in the first line of note)

Describe the solution you'd like So I was wondering could there be a new option "Append to the top (After frontmatter)" And with this, put the content before the CONENT but AFTER the frontmatter ? Thus not breaking thr original frontmatter.

Moyf avatar Feb 20 '24 08:02 Moyf

I have this issue as well. My capture macro has the following settings:

  • Task: enabled
  • Insert after: ### {{DATE:YYYY-MM-DD}}
  • Create line if not found: Top
  • Capture format: {{VALUE}}

The top of my note initially looks like this:

---
created: 2024-04-22
updated: 2024-05-15
---

[ ] some text

After I capture "this is a test", it looks like this:

### 2024-05-15
- [ ] this is a test
---
created: 2024-04-22
updated: 2024-05-15
---

[ ] some text

I wondering if I'm missing some obvious way not to clobber the frontmatter.

seren avatar May 15 '24 08:05 seren