From 0b5c59b17ca211b4a871e174183d4902c99f0418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sat, 22 Jun 2024 22:06:55 -0400 Subject: [PATCH] Initial commit of our zim wiki to logseq file converter --- zimwiki-txt-to-logseq-md.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 zimwiki-txt-to-logseq-md.py diff --git a/zimwiki-txt-to-logseq-md.py b/zimwiki-txt-to-logseq-md.py new file mode 100644 index 0000000..5856591 --- /dev/null +++ b/zimwiki-txt-to-logseq-md.py @@ -0,0 +1,10 @@ +import os + +def rewrite_file(filepath): + with open(filepath, 'r') as f: + contents = f.read() + + +for filepath in os.listdir(): + if file.endswith(".txt"): + rewrite_file(filepath)