Converting / importing existing text and markdown notes into Logseq

Important to note for the ~3,000 described second in tho original post above, all i did was put the markdown files into Logseq, or rather, i started a Logseq project in the notes folder, so all the legacy notes are in the main directory and all the new Logseq ones are in Pages.

For what turned out to be the more than 17,000 notes that were originally in Tomboy and converted to ZimWiki .txt files, i moved the Notebooks folder which had ~10,000 of its own notes and then additional subfolder notebooks, here is what i did:

Had to run grep -axv '.*' *.txt to find a rogue file that blew up python and iconv -f UTF-8 -t UTF-8//IGNORE Example_File_broken.txt >Example_File_fixed.txt to fix it (moving the file first so it would end up with the correct filename), but this frighteningly un-artful script logseq_helpers/zimwiki_txt_to_logseq_md.py at main - agaric/logseq_helpers - Agaric's Forgejo did the job for me getting the 17,343 Tomboy → Zimwiki notes into Logseq.

Simply CDd into each folder i wanted to convert and ran:

python /home/mlncn/Projects/agaric/logseq_helpers/zimwiki_txt_to_logseq_md.py

and then checked some of the results, if things looked good then rm *.txt (or if not, removed the markdown, tweaked the script, and ran again).

If you have code comments with this formatting:

/**
 * Comment.
 */

it does mess that up with turning the standalone asterisks into indented logseq bullets, but i was not supposed to have code in this set of notes so i let it slide.