It is, but why not just flip the card back to the front side?
its not woking here
I tried using “undo”, but sometimes it would show me another card instead of showing me the frontside of the card I was currently reviewing.
Hi, Im having a problem with the “shuffle lines” feature. It was working well before I updated to 2.1.46. So, here’s the original card, I have [[mix1:: ___]] to mix each row when I run the card:
However, recently the [[mix1::]] function has been occasionally duplicating rows as shown:
Front Preview:
Back Preview:
Notice the “Basophils” row has duplicated and the “eosinophils” has disappeared on the back of the card. Im not sure if this is a new bug or something that im doing, but any help is appreciated
Wouldn’t it be better to use [[mix1::]] tags on all the cells of the first column, then mix2 on all the cells in the second column, and add [[ord::mix1, mix2]] in the cmds0 field. You’ll get the same results, without the messiness of having to apply tags across cells.
Also, is there a reason you’re using the default anki clozes with closet instead of just using the closet clozes?
@alex11 Don’t use undo, there’s this addon to flip cards. Or if you don’t wanna install it, pressing e to open the edit window, then immediately pressing Escape to close it, will give you the front of the card again.
I don’t know whether or not this has been posted yet.
Is it possible to group the cover fields on an image together but reveal them one by one?
I know it’s not possible in Image occlusion because each field is an individual card. But maybe in Closet if they are all linked together?
cheers!
Yes, revealing them one by one [upon clicking the occlusions] is quite possible with the note type somenone [maybe kleinerpirat] made and posted earlier in this thread.
It’s somewhat limited though, as it’ll reveal each occlusion upon clicking it, regardless of which card the occlusion belongs to. For example: if you made a cloze with several [[rect1::]] and several [[rect2::]], it’ll ask you to incrementally click and reveal all of the occlusions, in both Card 1 and Card 2 produced from that Note. But it’s not a major hassle as I haven’t found myself needing multiple card incremental image occlusion yet.
Link. The other template has incremental text reveal function too, you can play around with the scripts using asset manager to add the functionality to your own templates.
Is it possible to combine click to reveal with keydown to reveal? Also, the script from the closet engine doesn’t seem to work anymore since when I tried pressing Q or W, nothing happened.
Very much possible, check this out: Cloze one by one uncovering - #16 by shallash.
And this for context: Cloze one by one uncovering - #14 by shallash
Hello,
I just discovered this plugin yesterday and it seems to cover exactly what I need.
After reading I found this automatic addition of “active” into the cmds fields.
However, this does not seem to be working for me and I am wondering if I missed a step.
- I installed the closet, asset manager and preserve plug ins
- I installed the custom styles and added a shortcut to the wrapping function with this [[c%j:: so it should add the active in the cmds field
- I added some Cmds fields and cards with conditional adding. Also this Cmds0 and cmds1 with display none CSS styling.
I first thought it might be due to my first card which is only like a normal basic with front and back. Then I renamed and sorted the cards, so that card1 matches cmds1.
But when I click on this shortcut button created from the styles add on it only adds the styling but no “active”.
I don’t know what else to do. Thanks
In newer versions of Closet, you don’t need the Custom Styles add-on anymore. Maybe the shortcut you defined overrides Closet’s shortcut.
There should be a dropdown select
element in the editor toolbar which says “Cloze” by default. You can choose different wrappers there, and they all work with Ctrl+Shift+C, but only with non-cloze note types.
Thank you very much for this clarification!
I saw the dropdown but as it had no direct effect, I didn’t know that it had such a functionality.
This is cool!
Now it would be cool, to have a shortcut for switching these modes instead of going with the dropdown
You can use Ctrl/Cmd-1, Ctrl/Cmd-2, etc. to toggle quickly between them
thank you very much!
Just a short remark on the custom styles plug-in: when disables (or not installed on my other computer), the shortcut does not work. I needed to download the plugin, but not define a custom shortcut. Only then it worked with the addition of [[c1::]]
Hello,
I am trying to make minimal pair cards with Closet that will pick one word from the minimal pair at random. This StackExchange question explains why this randomization useful, as well as what minimal pairs are. The first answer listed didn’t work for me.
What I had in mind with Closet was a note with four fields: Sound 1, Word 1, Sound 2, Word 2, with the following templates (imitating the last example on this page):
Front
<!--
[[spec1::[[setl::v::{{Sound 1}}||{{Word 1}}]]]]
[[spec2::[[setl::v::{{Sound 2}}||{{Word 2}}]]]]
-->
What word do you hear?<br>
<span>[[pi::v]]</span>
Back
{{FrontSide}}
<hr id=answer>
You have heard the word:
<span>[[pi1::v]]</span>
You may practice both words again:<br/>
{{Word 1}} {{Sound 1}}<br>
{{Word 2}} {{Sound 2}}
So, following the introductory video, I created three scripts for each of the ‘blocks’ in the setup of the same example:
However, this didn’t give the desired functionality as Anki just typeset the commands verbatim. Worse, the mix
and ord
functions also stopped working. I changed closet.recipes
to closet.flashcard.recipes
but that didn’t work either.
I also tried something simpler like generating a random number with the Basic
note type to no avail.
Would appreciate any help. Thanks.
Hi guys!
I was exploring the Closet website in order to generate some overlapping clozes. I’ve copied and pasted the following setup from the website.
Setup
/** Flashcard features */
filterManager.install(
closet.recipes.activate({ tagname: 'on', storeId: 'flashcardActive' }),
closet.recipes.deactivate({ tagname: 'off', storeId: 'flashcardActive' }),
closet.wrappers.product(closet.recipes.setNumber, closet.recipes.setNumber)({
tagname: 'around',
optionsFirst: { storeId: 'flashcardActiveTop' },
optionsSecond: { storeId: 'flashcardActiveBottom' },
}),
closet.recipes.setNumber({ tagname: 'up', storeId: 'flashcardActiveTop' }),
closet.recipes.setNumber({ tagname: 'down', storeId: 'flashcardActiveBottom' }),
closet.recipes.activate({ tagname: 'show', storeId: 'flashcardShow' }),
closet.recipes.activate({ tagname: 'hide', storeId: 'flashcardHide' }),
closet.recipes.setNumber({ tagname: 'top', storeId: 'flashcardShowTop' }),
closet.recipes.setNumber({ tagname: 'bottom', storeId: 'flashcardShowBottom' }),
closet.wrappers.product(closet.recipes.setNumber, closet.recipes.setNumber)({
tagname: 'ctxt',
optionsFirst: { storeId: 'flashcardShowTop' },
optionsSecond: { storeId: 'flashcardShowBottom' },
}),
)
The result:
Thanks in advance!
The examples on the website are outdated.
Like @PotatoHead correctly identified, you have to change closet.recipes
to closet.flashcard.recipes
.
Hi, I noticed the same issue as Casartelli yesterday.
When I add .flashcard
to closet.recipes.activate({ tagname: 'on', storeId: 'flashcardActive' })
and closet.recipes.deactivate({ tagname: 'off', storeId: 'flashcardActive' })
Closet stops functioning entirely.
If you have a working setup could you please share it?
There's one present in the note type you shared a while ago, but it doesn't work.
function flashcardFeatures(filterManager) {
filterManager.install(
closet.recipes.activate({ tagname: 'on', storeId: 'flashcardActive' }),
closet.recipes.deactivate({ tagname: 'off', storeId: 'flashcardActive' }),
closet.recipes.activate({ tagname: 'show', storeId: 'flashcardShow' }),
closet.recipes.activate({ tagname: 'hide', storeId: 'flashcardHide' }),
)
}
Also, the [[around]]
tag works with the unchanged script from the Closet site.
Thanks.