obsidian-spaced-repetition
obsidian-spaced-repetition copied to clipboard
[BUG] Flashcard review order "random card from random deck" - make info in modal title useful
Describe the bug From comment by @4Source https://github.com/st3v3nmw/obsidian-spaced-repetition/issues/814#issuecomment-1902236712.
The title information for the flashcard review modal has the format:
${deckName}: ${cardCount}
With:
${deckName} - The name of the deck of the currently shown card
${cardCount} - The count of cards remaining to be reviewed in this deck.
This is useful info for all review order modes, except for "random card from random deck".
Expected behavior In this mode it is more useful to display:
selectedDeckName - the name of the deck chosen by the user (doesn't change as cards from different subdecks are shown)
descendantDeckCount - count of descendant decks under the deck chosen by the user. This being the remaining count, i.e. the count of descendant decks that have 1 or more remaining cards for review
totalCardCount - total number of cards remaining for review across the chosen deck and all descendant decks (I.e. not the count of cards remaining in the current randomly chosen deck).
currentDeckName - The name of the deck of the currently shown card (needed for context)
cardCount - The count of cards remaining to be reviewed in this current deck. This is what is currently shown, and personally I don't find it very useful. Don't mind if it's present though.
What do you think about a Format
Title: ${deckName}: ${cardCount}
Subtitle: Subdecks: ${subdeckCount} | ${subdeckName}: ${subdeckCardCount}
deckName - the name of the deck chosen by the user (doesn't change as cards from different subdecks are shown)
cardCount - the total number of all cards in subdecks chosen by the user
subdeckCount - the number of all subdecks with remaining cards to review
subdeckName - the name of the subdeck from which the current reviewed card is
subdeckCardCount - the number of remaining cards of the subdeck from which the current reviewed card is
Something like that
When the lowest level of a deck is the selected one subdeckName and deckName would be the same that maybe a downside. This could be solved when only add the Subtitle if an Subdeck exist.