fsnotes icon indicating copy to clipboard operation
fsnotes copied to clipboard

YAML Headers and Metadata

Open mmerline opened this issue 4 years ago • 2 comments

Describe your feature request Please add YAML metadata support. To quote this Markdown Crash Course:

A YAML header contains YAML arguments, such as “title”, “author”, and “output”, demarcated by three dashes (---) on either end.

Here's a screenshot of how this looks in Sublime Text, which is an effective implementation:

Screenshot of YAML Metadata in Sublime Text

Ideally, this support would include a few significant features:

  • Basic metadata syntax highlighting
  • File naming that reflects the Title field
  • Metadata is ignored when previewing the rendered Markdown

The iA Writer implementation is a good model, and supports some additional inline variables, which is slick:

iA Writer supports metadata at the beginning of documents. You can use it store important information about your documents, hidden from Preview. Metadata must be separated from the rest of the document by three dashes. You can use the metadata in the text by putting it in brackets adding a % sign.

Additional context I believe this would apply to all OS and devices.

mmerline avatar Nov 03 '21 18:11 mmerline

Please refer also to the very insightful https://github.com/notaapp/talk/issues/86

xplosionmind avatar Jun 12 '22 12:06 xplosionmind

Another vote for Frontmatter support. I'm looking at migrating from Obsidian and it would be great to be able to make use of existing Frontmatter in my notes.

adamshand avatar Sep 07 '22 22:09 adamshand

Edit mode:

image

Preview mode:

image

glushchenko avatar Sep 25 '22 10:09 glushchenko

Glad to see this added in FSNotes 6! Thank you @glushchenko!

stuartnoggle avatar Oct 06 '22 15:10 stuartnoggle

Release available for download here https://github.com/glushchenko/fsnotes/releases/tag/6.0.0

I also ask you to vote on Prouct Hunt and Reddit, it will help in spreading:

https://www.producthunt.com/posts/fsnotes-6 https://www.reddit.com/r/macapps/comments/yh8156/fsnotes_v6_pro_notes_manager_for_macos/

Thanks!

glushchenko avatar Oct 30 '22 08:10 glushchenko

Looks like tags and created/modified are not supported. Example:

---
title: My Title
tags:
  - tag1
  - tag2
  - tag3
created: 2022-09-23T13:16:20.385Z
modified: 2023-03-05T10:19:48.033Z
---

helmut72 avatar May 29 '23 08:05 helmut72

@helmut72 please file as a new issue

gingerbeardman avatar May 29 '23 13:05 gingerbeardman