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

support for subdecks #42

Closed
aalemayhu opened this issue May 25, 2020 · 4 comments
Closed

support for subdecks #42

aalemayhu opened this issue May 25, 2020 · 4 comments

Comments

@aalemayhu
Copy link

aalemayhu commented May 25, 2020

I was eyeballing the code and it does not look like subdecks are supported? If that's right is there any plans on adding that? I have two websites[0][1] which uses this cool project and I was hoping to add support for subdecks.

Thanks.

[0]: http://notion2anki.alemayhu.com/
[1]: https://workflowy2anki.alemayhu.com/

@ashlinchak
Copy link

Anki supports the creation of subdecks via naming convention: Deck::Subdeck. If you create a title with :: separator, it'd be treated by Anki as a parent and nested deck.

@aalemayhu
Copy link
Author

@ashlinchak I did see that in the manual and am using that now but I want to provide one deck file to users to keep things easy. Currently they need to import multiple decks with the way I am using anki-apkg-export. It would be simpler with one grouped APKG file that has the tree structure.

As far as I can see this module does not support it and you have to name your decks correctly and import individually. I would love to use some function call to automate this away so I can group or pick where a card is added before making the save for APKG. It's just for convenience 😄

Do you know of any other projects which handle subdecks? I looked at the Ruby version but it does not support it either. Would preferably like to keep using this project but also open to switch or add the support myself.

Thanks.

aalemayhu added a commit to 2anki/server that referenced this issue May 26, 2020
Still not quite sub deck support but if the user opens all of the files
they will get them grouped. For now I am disabling the empty decks since
the parents will eventually be created regardless of the import order.
Also the zero cards waning from Anki might confuse suers.

Reference: repeat-space/anki-apkg-export#42
@ashlinchak
Copy link

@scanf I don't know about any other projects, that could give you an idea, except Anki itself 😄 Take a look at how decks are implemented in the desktop version. Also, investigate the importing part if it's possible to do what you need.

@aalemayhu
Copy link
Author

I experimented with genanki and have removed anki-apkg-export from my project. It's not ideal to shell out to python but it works. I am closing this issue but feel free to re-open 👍🏾

Thanks 🙏🏾

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

No branches or pull requests

2 participants