Skip to content

dendron

Shortcuts

Copy Note Reference : ctrl+shift+r

https://github.com/dendronhq/dendron/issues/1966#issuecomment-1000248470

wiki.software.Comparison.dendron vs trilium vs org-mode

Issues

Convert Dendron to dentropydaemon-wiki/Software/List/Obsidian

from pathlib import Path

import glob

import os

import shutil



# Want to use Obsidian, run this script



dendron_path = os.getcwd() + "/dentropydaemon-wiki/"

output_path = dendron_path # os.getcwd() + "/export/"



dendron_markdown_files = glob.glob(dendron_path + "*.md")



def fix_file(file_path, out_path):

file_name = file_path.split("/")[-1]

final_file_name = "/" + file_name.split(".")[-2:-1][0] + ".md"

new_path = "/".join(file_name.split(".")[0:-2])

Path(out_path + new_path).mkdir(parents=True, exist_ok=True)

Path(file_path).rename(out_path + new_path + final_file_name)

# shutil.copyfile(file_path, out_path + new_path + final_file_name)



Path(output_path).mkdir(parents=True, exist_ok=True)

for file_name in dendron_markdown_files:

fix_file(file_name, output_path)

Sources