obsidian-spaced-repetition
obsidian-spaced-repetition copied to clipboard
Bug 495 card should be added to all tagged decks not just the first one
I have a change which fixes #495, allowing a card to be added simultaneously to multiple decks if the note is tagged with multiple valid deck tags.
This does lead to some questionable behavior, where if a user tags the same note with #parentTag and #parentTag/childTag, then the cards in that note will be single-counted in the #parentTag/childTag deck (which is fine), but double-counted in the #parentTag deck (which seems weird, but hey it's what they've literally asked for by doing that).
Example of what I mean
Here's the contents of the note:

and here's the resulting UI from this plugin when you use the 'cram flashcards in this note' command:

I'm not sure if this is how we want the plugin to behave, or if we would perhaps like to make it configurable by having a setting that determines what happens in this situation. I'm open to suggestions, as I haven't been using the obsidian-spaced-repetition plugin personally for very long so I don't have a good feel for what makes sense here.
This does lead to some questionable behavior, where if a user tags the same note with
#parentTagand#parentTag/childTag, then the cards in that note will be single-counted in the#parentTag/childTagdeck (which is fine), but double-counted in the#parentTagdeck (which seems weird, but hey it's what they've literally asked for by doing that).
Yeah, this approach would break a few things like the counting as you've mentioned and we'd have the card in multiple decks, so if we review it the first time in deck A, the same card will show up later in the same review session (in deck A/B).
We'll probably need to rewrite parts of this plugin to use hash(cardText) as IDs to make it easier to remove/pick/update the same card in multiple decks
Any chances to check this merge conflicts @MostlyArmless ? This PR looks really really promising...
Sure I'll take a look tonight.
Is this still in progress?
Hi @4Source
Yes, it's actually been quite involved, but I'm at the tail end. I'm hoping to release a beta version in the next couple of days. Will you be able to test and give me feedback?
I think that should be possible. I'll wait for the release. Will you mark this here when the time comes?
Hi @4Source @MostlyArmless @pikatwinky (and anyone else)
I have completed the update but would appreciate beta testing and feedback before I finalise the PR.
The draft PR together with the updated code is available at: https://github.com/st3v3nmw/obsidian-spaced-repetition/pull/834
Cheers Ronny
Hi @MostlyArmless have you had a chance to look at https://github.com/st3v3nmw/obsidian-spaced-repetition/pull/834?
After all your good work with this PR, I want to make sure you are happy with the final result.
Cheers Ronny
This has been superseded by #834, which was based on the refactored code base.