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

Section Groups #6

Open
johnkyle4 opened this issue Jul 8, 2020 · 2 comments
Open

Section Groups #6

johnkyle4 opened this issue Jul 8, 2020 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@johnkyle4
Copy link

johnkyle4 commented Jul 8, 2020

The script is running fine until it hits a section group, then it exits with "0."

In my OneNote Notebook "root" I have a few sections like "Inbox", "To Read"... then all section groups (like "/bus," "/dev..." these contain many sections and more "sub"-section groups .) My collapsed "root" looks like this:

Inbox
To Read
/ bus
/ dev
/ home
/ life
/ music
/ work

I see in the docs:

Section Groups are listed but do not contain actual data, so these are ignored

Does this mean it can't navigate into a section group and is skipping all the section groups and exiting with no errors? So all sections to be exported need to be moved out of section groups and to the top level/root?

@SjoerdV
Copy link
Owner

SjoerdV commented Jul 8, 2020

hi @johnkyle4, you probably found a bug! I did not use SectionGroups that much so that's why the script logs but ignores them.
In fact SectionGroups can contain Sections and other SectionGroups as it seems and these are not processed:
https://getonetastic.com/docs/Hierarchy_Objects_SectionGroup.html

I will classify this issue as a bug, but I can not give an estimate if and when this will be solved.

for now I would advise to move all 'Sections in your existing SectionGroups' to separate Notebooks and run the script on those new notebooks without SectionGroups. You probably will have issues with links in those moved Sections, sorry about that.

@SjoerdV SjoerdV added the bug Something isn't working label Jul 8, 2020
@nixsee
Copy link

nixsee commented Jul 11, 2020

@johnkyle4, I didn't notice this issue/bug report - see my issue here where I have attached a modified script that solves this problem (with its own peculiarities - you'll need to put Inbox and To Read in a new section group)

@SjoerdV, you can probably close both issues and incorporate my changes however you like - maybe just have my two scripts included as options in the downloads? If you can address my idea about creating a single media folder in the root directory, that would be fantastic as well!

@SjoerdV SjoerdV self-assigned this Jul 13, 2020
@SjoerdV SjoerdV added the enhancement New feature or request label Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants