-
Notifications
You must be signed in to change notification settings - Fork 199
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 multi-deck cards #495, and multiple decks in a single note #705 #834
Support multi-deck cards #495, and multiple decks in a single note #705 #834
Conversation
…ted existing test cases (haven't fixed main.js or added all needed test cases)
…deck-tags-ignored
Hi all Beta release is now available. There is a file called You will need to copy that to the obsidian plug-in folder, e.g. Then reload the plug-in, or restart obsidian. Any feedback appreciated. Ronny |
Hi @pikatwinky thanks for trying, and oops that's not a good start! Please attach one of your Markdown .md files so I can isolate the problem. Also, can you send a screenshot of the relevant settings, including: Cheers |
Hi @ronzulu, i tried with the sandbox vault and with my own vault. In both cases i use this settings The md i use in each case looks like this I copied the main.js file in the plugin's route, but at reviewing time the cards aren't shown and the window looks as in my previous attachment Edit: Maybe im doing something wrong cause the plugin's note review feature works properly, but also when i return to the current release, those flashcards load without any problem |
So I had a file with a lot of hierarchical (if this is even a word:) ) card tags. 3 layers deep, some with one deck in them some with more. I downloaded the zip, put the file where it belongs, reloaded obsidian AND IT WORKED LIKE A CHARM. Thank you. This is exactly how i had it in mind since the tags where already in the file before you added this functionality. You added it and it just works. |
Hi @pikatwinky from your screenshots you have done everything correctly. Could you please zip up your test vault and post here. Hopefully I'll be able to reproduce the issue at my end. Thanks |
Sorry to hassle you, would be great if you can send this through. Many thanks! |
Hi Ronny, sorry for the late reply. I had that problem using the sandbox vault and a personal vault. Unfortunately i cant publish the personal one. Does the sandbox work for you? |
Hi @pikatwinky I don't know why I didn't think of it before, but here is a demo vault with the beta version of When I open the vault, and click on the flashcards icon, I see: What do you see? If you see the same as above, perhaps copy one of your test files into this vault and see what happens. If the beta code doesn't work with your file in this demo vault, please zip it up and post the zip file here. Thanks for your help! Cheers |
Hi @ronzulu. |
Hi @pikatwinky great. Does that mean it works when you copy your file into the test vault? I assume that the problem still occurs in your main vault? If so, I'll need to send you a version with extra debug to assist diagnosing. Cheers |
Hi @ronzulu! If the steps i followed here are all right, then yes, all my existent cards still dissapear from the review window, but the other plugin features like the note review work properly. |
Hi @pikatwinky No worries, I understand you can't send through your personal vault. I'm hoping to be able to reproduce the problem on my machine to simplify solving it.
When you click on the flashcards icon, do the cards from
Replace any private info in the file with just boring general text, retaining the flashcard tags.
Sorry for all this hassle, but I think this is a useful new feature and there isn't any point releasing it if it doesn't work for you! Cheers |
Hi @ronzulu
I was expecting a flashcardsTest deck appeared in the window because that tag was added in the settings I hope this info could be found useful |
Hi @pikatwinky Thanks so much for the clear and comprehensive info, it enabled me (hopefully) to solve the problem. If you could please try this version now, and let me know how it goes. Cheers |
Hi @ronzulu, i tested this new version in my own vault and it works perfectly, thanks again for all your hard work |
Hi @st3v3nmw this has been tried out by a few people, and I've fixed the one bug reported. This PR has required moderate change (more than I anticipated), so a review by you really is needed. The original PR request has a comprehensive description of the enhanced functionality, and I have also updated the English user documentation to match. Also, will you have time at some stage for us to talk through all the PRs contributed and create a plan? Cheers |
Hi @st3v3nmw, just wondering how you are - you must be very busy 😄 It would be great if you could review and merge this PR.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ronzulu,
I had tested this manually and it looks good to me. Thanks!
This PR addresses issues:
#178
#495
#705
For example, in the following:
Syntax
For a question to appear in multiple decks, preceding the question in the file must be the list of tags on the same line, such as:
The list of deck(s) can be changed using this format multiple times within a single note.
The list of deck(s) can be included in the frontmatter, in which case multiple tags can be on multiple lines, such as:
A question specific tag takes precedence over the note-level tags described above. For example, in the following:
#flashcards/spatial
#flashcards/trivia
, i.e. the last note-level tagCard counting
Multi-deck cards are only counted once, e.g.:
In the case of multi-deck cards, totals may not add up. E.g. under
flashcards
islanguage
,learned-from-tv
andtrivia
. Those decks have 3, 1, 4 cards listed respectively, totaling 8. Which is 2 more than the total of 6 shown at (1). This is because theA group of cats is called a::clowder
question is present in 3 decks, but is only counted as if it was in one.Reviewing
A multi-deck card will only be shown once. For example, after reviewing only the
learned-from-tv
deck, the counts are:The new-card counts in blue, across the 3 decks in which the cat question appears, have all decreased by 1.
i.e. lines (3) (4) and (5). (2) has also decreased as it is the parent of (3).
Backward Compatibility
For compatibility with plug-in functionality before this PR, if there are no note-level tags prior to a question, and that question doesn't have a question specific tag, the question will be placed in the deck specified by the first tag found after the question within the file.
e.g. if the complete content of a note is:
All the questions will be found in deck
#flashcards/backward-compatibility
Beta Testing & Feedback
Yes please!