"Remove cloze" button/shortcut

Hello,
I think there should be a built-in “remove cloze caption” button and/or keybind, that removes all the “{{c:: }}” in the selected text while keeping everything else.
It seems like a very basic and extremely useful function to have.

Sorry if it is already there in newer Anki versions and I missed it.

Thank you,
jcznk

11 Likes

There used to be an add-on for this but apparently it doesn’t function with current versions of Anki.

You can use find and replace with the following regex:

{{c[0-9]+::

and then a regular find and replace for {{, with the replace field empty for both.

This is a little cumbersome for individual cards but quick if you have a large number of cards that need the clozes removed.

Remove Cloze Button and Hotkey
Last updated: 2019-12-22

Add-ons system is great but at the same time this situation shows its drawback. Add-ons can be abandoned by developers. And other developers are reluctant to engage with someone else’s work.

Indeed some basic functionality that is / was done by add-ons should be implemented in Anki.

Using regex and Find and replace is great for bulk edition, not for single items. So, I fully support this request.

@dae
Could this please be implemented in new Anki releases?

I haven’t seen enough demand for this to make it a priority at the moment.

1 Like

This! And I imagine it working like his (I don’t know if Glutaminate’s addon was like this):

  • if the cursor is inside a cloze, pressing the remove cloze button would simply remove that cloze. I mean, no need to select the whole cloze.
  • And, if a block of text is selected, any clozes inside would be removed.
1 Like

Glutanimate updated the Remove Cloze Button and Hotkey addon :tada::tada::tada:

4 Likes

+1 for that

I really wish this existed as well. the Add On is not working for me

Hi,
when I try to use this, it deletes the whole text. Is it still working for you?

I just stumbled upon this while reading through old suggestions, this is great and could be really useful.

I make large cloze notes and reorganizing the points/clozes has always been much slower than I’d wish.

It would be a lot faster if I could select everything in a field and then remove all cloze deletions in a single click.


FWIW, this is one of the top posts if you sort unresolved suggestions by view counts. I imagine a lot of people searched for this.

2 Likes

Good to know! No objections on my end if someone’s interested in implementing this - I presume we’d add a third only-shown-for-cloze-notetypes button to handle it.

2 Likes