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

Frontmatter Properties in Markdown #8255

Open
1 task
thehiddenwaffle opened this issue Sep 13, 2024 · 3 comments
Open
1 task

Frontmatter Properties in Markdown #8255

thehiddenwaffle opened this issue Sep 13, 2024 · 3 comments
Assignees
Labels
story Features perceivable by end-users

Comments

@thehiddenwaffle
Copy link

Description

Currently importing markdown files which have frontmatter YAML at the start does not correctly create/set tags or other metadata in the corresponding Affine page. In order for larger Obsidian vaults to be imported into Affine it would be necessary to have this feature. Obviously some things like timestamps are highly flexible and would require additional work to import into the "appropriate" places in Affine but just having them as string metadata would make Affine much more compatible with frontmatter.

Use case

I have an Obsidian.md vault I would like to bring into Affine but redoing this metadata would be time consuming so I'm currently just not using Affine for now, which is sad because I like it better.

Anything else?

gets imported as

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@thehiddenwaffle thehiddenwaffle added the story Features perceivable by end-users label Sep 13, 2024
@affine-issue-bot
Copy link

Issue Status: 🆕 *Untriaged

*🆕 Untriaged

The team has not yet reviewed the issue. We usually do it within one business day.
Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md

This is an automatic reply by the bot.

@blackgwe
Copy link

👍 I would very much welcome it. It should not be complicated to implement this feature

MVP:

  • Tags: create if not available; fuzzy (case sensitive, comma separated or as List)
  • all YAML Keys as Text Properties

If possible: Try to find the the property type (Numberm Timestams, DateTime)

@hwangdev97
Copy link
Member

This is a good idea. We all know that software like Obsidian uses YAML to bind data.

However, considering that the property of the workspace will be used by the whole team together, if some unexpected collaboration issues arise due to the import, it might mess up the data. Therefore, we will carefully consider this feature of bulk creating properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
story Features perceivable by end-users
Projects
Status: 🆕 *Untriaged
Development

No branches or pull requests

3 participants