nobiot / md-roam

Use Org-roam with markdown files by adding Md-roam as a plug-in. Mix org and markdown files in a single Org-roam database.
GNU General Public License v3.0
331 stars 14 forks source link

What is the minimal requirement for md files to be recognized as org-roam nodes? Thank you very much. #70

Closed suliveevil closed 1 year ago

suliveevil commented 1 year ago

All my 20000 Obsidian notes have this YAML:

---
title: "callout_test"
categories: 
date: 2022-11-11 05:38:40 +0800
tags: 
excerpt: 
---
suliveevil commented 1 year ago

Do I have to change all front-matter YAML to this style?

Can I leave category roam_refs roam_aliases empty?

Thank you very much.

---
title: callout_test
id: 2022-11-11T053840
category: 
roam_refs : 
roam_aliases :
---
nobiot commented 1 year ago

Did you work this out by yourself?

I think you’d need just the ID property. The value does not have to be the date format. Not sure it needs to be one word with hyphens, but thats what I use.

suliveevil commented 1 year ago

Yes I figured it out, thank you for your kind concern. I'm trying to understand Obsidian's backlink and roam's node 😬

nobiot commented 1 year ago

As far as I know, Obsidian’s wiki syntax uses the filename without the extension, and spaces replaced with hyphens. Md-roam uses the title and aliases as they are, with spaces intact, and uses the cache (database) to identify the corresponding node.

suliveevil commented 1 year ago

Obsidian has less requirement while org-roam need id.

But when have files with same name in different subfolder, Obsidian's backlink is ugly.

I love the freedom of md-roam and org-roam, counterpart to Obsidian's hidden so-called "index".

Thank you for your great work! ☺️

nobiot commented 1 year ago

Thank you. If two nodes have the same title, Md-roam outputs a message and cannot resolve to a single ID. You could use ID in the wiki syntax…

suliveevil commented 1 year ago

Thank you, tips get 😬