logseq-anki-sync icon indicating copy to clipboard operation
logseq-anki-sync copied to clipboard

Hide how many bullet points the answer consists of

Open alan-n-f opened this issue 3 years ago • 3 comments

Describe the solution you'd like

I want to have a question with multiple bullet points as an answer, but not be able to know, when in anki, how many bullets the answer consists of.

example

Describe how it will help your workflow

  • I break all, even single line answers, into multiple lines/bullets that follow some logic, because this is how I take notes and it helps me scan the answer more quickly. BUT knowing beforehand the number of bullets already clues me in.
  • Also, I learn lists too (don't hate me) and I don't want to know beforehand just how many items.

Sorry if this is already doable! Tried the docs, but didn't find how to do it there.

Thank you! And thank you for the amazing plugin! :)

alan-n-f avatar Jul 09 '22 20:07 alan-n-f

A solution:

  • A setting:
    • Something like "hide number of items in answer"... I dunno, naming is tricky ^^
  • The code:
    • It would check the recursive call to getClozedContentHTML and if level == 0 wrap the entire parent <UL/> in a cloze deletion, while ommiting doing that for each item, of course.

I'm not a coder, and I have exams coming up so right now I can't go through the docs and see how to implement the setting thing. I did code this into a clone of your repo and installed from there, and it does what I want.

Thank you again!

alan-n-f avatar Jul 10 '22 20:07 alan-n-f

FIY this is the kind of things I created my own custom JS notetype for : https://github.com/thiswillbeyourgithub/Clozolkor

thiswillbeyourgithub avatar Apr 20 '23 16:04 thiswillbeyourgithub

Edit: actually I managed to do it but the note type gets reset every time I update my cards so I can't use it as long as #157 is not fixed

thiswillbeyourgithub avatar Apr 20 '23 17:04 thiswillbeyourgithub