Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: owo
Choose a base branch
from

Conversation

wongsingfo
Copy link

@wongsingfo wongsingfo commented Dec 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant