trgkanki / cloze_hide_all

GNU Affero General Public License v3.0
11 stars 3 forks source link

Display hint fields for hidden clozes #37

Closed ardent246 closed 3 years ago

ardent246 commented 3 years ago

Feature request

Problem description

There are cases where I would like to see the hint field of the cloze fields that are not being tested by a specific card instead of having the non-tested cloze field completely blocked out. For example

GERD med [favorite PPI] <---- non-tested field for which I would like the hint displayed but the answer blocked out on both card sides Severe disease [----] <---- tested field Max BID dosing [----]

Suggested solution

Create a pre-pend operator for the hint field of a cloze deletion that will show the hint on all cards associated with the note. E.g., {{c1::answer::!hint}}. Currently, there is a similar function with prepending the answer portion to display the specified cloze contents on all generated cards.

Alternative solutions you've thought of

I have been writing the hint text outside of the cloze deletion, which is not very elegant.

E.g., in the above example I would have written "{{c1::omeprazole::favorite PPI}} //favorite PPI//" so that when c1 is completely blocked off i can see still see "favorite PPI" next to it, which I have to set off with some sort of symbols so I don't confuse it as part of the card itself and recognize its just a work around hint field.

phu54321 commented 3 years ago

Could you present a full card? I'm a medical student so I'm well aware of GERD or omaprazole, but I don't really understand why you need such feature. Thanks 👍

Note for myself: {{c1::answer::!hint}} syntax could work, since I'm taking control of every aspects of card HTML. Just do some regexing


This could be helpful, but this is quite an orthogonal features to what we have so far. Might take a bit

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ardent246 commented 3 years ago

Sorry for the long delay, and again thank you for this absolutely critical addon.

Here are two sets of cards that hopefully show why this could be helpful. The selective hint field would allow me to know whether we are talking about my favorite ACEi or favorite ARB in the setting of HTN drug selection. Right now I've added a parenthetical to address this ("Anti-HTN meds (favorite ARB)" or "Anti-HTN meds (favorite ACEi)") which is a fine solution, but it could be more elegant to offer the suggested option if it is easy to implement.

CARD 1 Anti-HTN meds: {{c1::losartan::favorite ARB}} Initial dose: {{c4::25 to 50 mg once daily}} evaluate response every {{c2::4 to 6 weeks}} Increase dose as needed up to {{c3::100 mg/day in 1 to 2 divided doses}}

Anti-HTN meds: {{c1::lisinopril::favorite ACEi}} Initial dose: {{c5::5 to 10 mg once daily}} While titrating, evaluate response every {{c2::4 to 6 weeks}} titrate dose {{c3::in 1-step increments (eg, increase the daily dose by doubling)::by increasing dose by what amount}} as needed Max dose {{c4::40 mg once daily}}

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.