Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML Headers and Metadata #1238

Closed
mmerline opened this issue Nov 3, 2021 · 8 comments
Closed

YAML Headers and Metadata #1238

mmerline opened this issue Nov 3, 2021 · 8 comments

Comments

@mmerline
Copy link

mmerline commented Nov 3, 2021

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.

@xplosionmind
Copy link

Please refer also to the very insightful notaapp/talk#86

@adamshand
Copy link

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.

@glushchenko
Copy link
Owner

Edit mode:

image

Preview mode:

image

glushchenko added a commit that referenced this issue Sep 25, 2022
@glushchenko glushchenko added this to To do in FSNotes 6 via automation Sep 25, 2022
@glushchenko glushchenko moved this from To do to Done in FSNotes 6 Sep 25, 2022
@stuartnoggle
Copy link

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

@glushchenko
Copy link
Owner

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!

@helmut72
Copy link

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
---

@gingerbeardman
Copy link
Collaborator

@helmut72 please file as a new issue

@ReessKennedy
Copy link

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
---

+1 on supporting support for tags. I am trying to get Obsidian and FS Notes to work together but have all page-level tags in FrontMatter with Obsidian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

8 participants