anki icon indicating copy to clipboard operation
anki copied to clipboard

Provide a 'hide all, show one' option for cloze deletions?

Open dae opened this issue 1 year ago • 5 comments

If such an option existed, it would allow users to more easily elide all but a single cloze at a time. Currently they are using nested clozes to approximate this, and it performs poorly+is limited in nesting depth.

One big question is how this might be implemented. If it were some flag in individual clozes, it would be confusing if a field had a mix of the two. We could potentially do it as a separate cloze notetype, though it would be a little awkward to switch between the two. Thoughts?

Originally reported on https://forums.ankiweb.net/t/nested-clozes-doesnt-work-for-more-than-3-nests/52661/11

dae avatar Dec 09 '24 07:12 dae

If it were some flag in individual clozes, it would be confusing if a field had a mix of the two.

The flag can make a cloze show up as inactive cloze in every card which means if same field has clozes without the flag they won't be used like that. Would that be confusing?

brishtibheja avatar Dec 09 '24 11:12 brishtibheja

I think best to make it an option in the note type.

I just saw this as I was trying to find out how to do just this. Basically, I have a cloze note with 13 cards. I want to hide all the other answers, but still show the embeded hint. For example: {{C1::The::definite article}} cat is in {{C2::a::indefinite article}} hat. So I would like to show on the front of C1 the card: The [definite article] is in [indefinite article] hat. (with a color change for the close) And for the C2 card, emphasize the 2nd one.

I was trying to make a new note type to do this as I thought it was something that was already set up. Basically, I think best to make it an option in the note type.

studentjunk avatar Apr 27 '25 21:04 studentjunk

@studentjunk Have shared a JS script that does exactly that. https://forums.ankiweb.net/t/template-to-hide-all-clozes-while-testing-on-one/61750

I agree it probably make sense to have an option in the note type to turn on hide all.

brishtibheja avatar May 28 '25 10:05 brishtibheja

Thanks @brishtibheja. I don't have time now to look at the code, but this is almost what I need. My problem is I need all the hints visible. My use is taking a language assignment that requires conjugating the verbs.

But I need to be able to see the infinitive forms of all the verbs on the page (which would be the hints). I'll post what I did in your link as it appears more appropriate there.

studentjunk avatar May 28 '25 13:05 studentjunk

In case this is helpful, the "show one, hide the rest" cloze can already be achieved via a custom Note type, as explained here: https://www.reddit.com/r/Anki/comments/1l99cq3/i_give_you_inverse_cloze_note_type

mosesrivera100 avatar Nov 15 '25 04:11 mosesrivera100