Cobertos / notion_export_enhancer

Export and _enhance_, takes Notion's export and makes it just a bit more usable
MIT License
26 stars 5 forks source link

feat: allow user not to move md file to the folder with the same name #4

Open wongsingfo opened 2 years ago

wongsingfo commented 2 years ago

The default behavior of notion-export-enhandcer is to move the root md file into the folder with the same name and to rename the md file as !index.md. For example, suppose we have files:

top [a_long_ID].md
top [a_long_ID]/sub1 [a_long_ID].md
top [a_long_ID]/sub2 [a_long_ID].md

Then, the output is

top/!index.md
top/sub1.md
top/sub2.md

But this is not a desired behavor in some cases. For example, in my case, I want to export Notion to Trilium, a note taking app. The desired file structure is:

top.md
top/sub1.md
top/sub2.md

This PR aims to add an cli option --dont-move-md-to-folder to address this problem.