How to create a Logseq graph using existing Markdown files

If you already have a collection of Markdown files you wish to start with instead of creating a new graph, Logseq allows you to import those files—even if they were created with another tool.

To start using Logseq with your existing Markdown files, all you have to do is create a new graph and select a directory that contains Markdown files. Logseq will automatically create the following folders:

  • journals (in which each day a new file is created for that day)
  • pages (where new files are created when you create a new page in Logseq)
  • assets (where all (media) files you upload in Logseq are stored)

Logseq has the ability to find files in subfolders, so it’s not necessary to move all of your Markdown files to the pages folder. When you open a directory with files that were created by the Obsidian Daily notes core plugin, Logseq will automatically locate them. However, Logseq will create a new file for every day onward in the journals folder.

If you want to use Logseq in combination with Obsidian (for example, to make use of Obsidian’s massive plugin ecosystem), have a look at the following Twitter thread by Logseq team member Ramses. In it, he shows exactly what settings you need to change in both tools to make them play nice together.

https://twitter.com/rroudt/status/1443546448675573760?s=20&t=7ZN7VrDmlEgLvtT5Ffgung

Continue by getting to know the Journals page.

Logseq has the ability to find files in subfolders, so it’s not necessary to move all of your Markdown files to the pages folder.

For me logseq has created its own nested file structure , but does not seem to be able to read down into it.
https://discuss.logseq.com/t/many-journal-pages-disappear-nested-directory-structure/11289/2
Could it be because it finds the deeper pages folders, but not the journals?

Any help would be greatly appreciated

1 Like

When I opened logseq in a directory that already had markdown files most of them ended up permanently deleted. I had no recent backup, which admittedly is my own stupid fault, but anyone trying this needs to take care.

That shouldn’t be happening! If you can, could you please send me a DM with the steps that you took and that resulted in this data loss?

I literally just started the program and selected the directory that contained my files. note that the directory was already initialized as a git repo, but there where a lot of uncommitted changes.