-
Notifications
You must be signed in to change notification settings - Fork 183
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
[BUG] Open next note automatically after a review never picks from "new" #904
Comments
Thanks, I think I remember a similar report... [BUG] open a note for review can not open notes correctly. |
@ronzulu Thanks! I tried to find a bug report fitting mine. However it seems that this one is quite old and complains about not correctly set metadata/properties which in turn leads to weird behavior. I think mine is purely concerned with obsidian-spaced-repetition never picking from the new stack. |
Yes, not always easy to find existing similar issues. Came across another one... [BUG] In New jumping to next will go Today instead of taking the next one in New #716 Listing here so that when your issue is rectified, all related ones can be checked as well. Cheers |
That's more like it. I might even look into this problem myself if I find the time. Let's see. Any pointers to where the decision point for picking the next note is? |
That would be great 😄
Cheers |
Hm. Actually the only problem it turned was that here: if (deck.dueNotesCount > 0) {
const index = this.data.settings.openRandomNote
? Math.floor(Math.random() * deck.dueNotesCount)
: 0;
await this.app.workspace.getLeaf().openFile(deck.scheduledNotes[index].note);
return;
}
if (deck.newNotes.length > 0) {
const index = this.data.settings.openRandomNote
? Math.floor(Math.random() * deck.newNotes.length)
: 0;
this.app.workspace.getLeaf().openFile(deck.newNotes[index]);
return;
} Due notes are considdered before new notes. Since this can't be changed you may end up in a situation where you never make it to the new notes because you have so many due notes. I just switched those two if statements in the built js in my plugin installation an it worked. Sadly I don't have a lot of time to fix it in a more involved way. I think though it should be an option to choose which of the notes should be checked first. |
Issue #947 has been fixed and has been released in the latest mainstream version 1.12.5, which I believe could have solved this issue. I'm closing this now, but feel free to reopen if that hasn't resolved your problem. |
Describe the bug
When using the option "Open next note automatically after a review" and reviewing notes the "new" stack is skipped.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
New notes are the first to be picked.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: