Skip to content

write_note should preserve frontmatter passed in via content of note #47

@phernandez

Description

@phernandez

Feature Description

The write_note tool currently ignores any frontmatter passed in via the content of the note. It should try to preserve it.

For example

{
  `title`: `Custom Frontmatter Test`,
  `folder`: `tests`,
  `content`: `---
Status: In Progress
Priority: High
CustomField: TestValue
Version: 1.0
DueDate: 2025-04-30
---

# Custom Frontmatter Test

This is a test note to verify that custom frontmatter fields are preserved when updating notes.

- [task] Test frontmatter preservation #test #bug
- [note] This note has several custom fields (Status, Priority, CustomField, Version, DueDate)
`
}

will only contain the following frontmatter fields:

title: Custom Frontmatter Test
type: note
permalink: tests/custom-frontmatter-test

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions