Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Order of processed markdown files seems random #29

Open
LuccaHellriegel opened this issue Jul 12, 2019 · 1 comment
Open

Order of processed markdown files seems random #29

LuccaHellriegel opened this issue Jul 12, 2019 · 1 comment

Comments

@LuccaHellriegel
Copy link

LuccaHellriegel commented Jul 12, 2019

Is there a way to control the order of cards that are added?
I currently use Markdown to write my lecture notes and then arrange them for the import. However, especially in math-heavy courses the ordering of the cards is quite important.

I just tested two md files with 2 cards each (1Test.md and 2Test.md). The order that the cards were added was random, first one card of md file 1, then two cards of file 2 and then the second card of file 1.
My Anki Setup is configured to ask the cards in the order they were added.

@LuccaHellriegel LuccaHellriegel changed the title Order of adding cards Order of adding cards seems random Jul 12, 2019
@LuccaHellriegel
Copy link
Author

The random order of the cards themselves was my fault: I sorted by the wrong field in the card browser.

However, I also found out that os.walk (in line 325) results in unordered filenames in some cases (e.g. "3Slides3.md" was before "1Slides1.md" on my Ubuntu machine). I added "files.sort()" in my version to fix this.

@LuccaHellriegel LuccaHellriegel changed the title Order of adding cards seems random Order of processed markdown files seems random Jul 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant