deepal / boostnote-github-sync

✨ Sync BoostNote notes into Github Private Repo in Markdown format
20 stars 5 forks source link

include tags and other metadata #20

Closed arcturus140 closed 5 years ago

arcturus140 commented 5 years ago

Did you consider synchronizing all metadata from boostnote notes and snippets with markdown files? Metadata could be added to YAML front matter.

This section is invisible for most markdown renderer. Also works with BN. An example could look like:

---
createdAt: "2018-09-25T09:05:00.937Z"
updatedAt: "2019-05-23T14:05:01.657Z"
type: "MARKDOWN_NOTE"
folder: "2826e081a3ec6d795f77"
filename: blabla.cson""
title: "some title"
tags: "a, b, c"
---

Though it is being displayed on github and bitbucket (others untested). Maybe a comment section could be used, instead:

<!--
createdAt: "2018-09-25T09:05:00.937Z"
updatedAt: "2019-05-23T14:05:01.657Z"
type: "MARKDOWN_NOTE"
folder: "2826e081a3ec6d795f77"
filename: blabla.cson""
title: "some title"
tags: "a, b, c"
-->
deepal commented 5 years ago

@arcturus140 Thanks for the contribution. I plan to support this by allowing syncing raw notes in .cson format to GitHub. This not only allows preserving metadata but also allows bi-directional syncing with GitHub (with the current implementation, it is only possible to sync to GitHub only, not the other way around). Please follow up with the issue #5 .

arcturus140 commented 5 years ago

yes, I meant this as an alternative to #5, but storing raw notes preserves the metadata as well.