Sorting lines of a note into different cards

Hi

I’ve tried my best to find a quick solution to this…

I have notes of the cloze note type, that are all different problems in a particular category. Specifically, they are the best moves you should play against an opponent’s move for a specific dice roll. So of the 21 notes is for each of the 21 different possible dice rolls. They look like this:

4-1 replies</b>

|2-1split|{{c1::double hit}}|
|2-1slot|{{c2::hit&run(1)}}|
|3-1|{{c3::split&build}}|
|4-1split|{{c4::double hit}}|
|4-1slot|{{c5::hit&run}}|
|5-1split|{{c6::double hit}}|
|5-1slot|{{c7::hit&run}}|
|6-1|{{c8::split&build}}|
|3-2build|{{c9::slot&build}}|

…etc. The problem is, each card only hides the answer for 1 line, and the other lines are still shown. This isn’t how I should have done it. Obviously, I should have created a new note for each line.

Is there a way I can either hide all but the line that the current card cloze is specifically for? Or, is there a way I can separate the lines out to new notes automatically? Simply putting c1 in each cloze to hide each line isn’t the best solution I am looking for. I would much rather that each line was a separate card, without showing the other questions and there answers.

Thank you so much!!

Charles

There’s no “best” path out of this. An important question you need to consider – Do these 9 (or 21?) existing cloze cards for this note have review history that you want to preserve? Or are you willing to give that up and start over with new cards?

Yes, you can use nested cloze deletions to do that – Adding/Editing - Anki Manual . E.g., everything that you wrap in a c1 cloze-marker will be hidden on card 1, so if you only want to see “2-1split”, you can hide everything else with c1 markers, and then it will all be revealed when you show the answer.

This might be annoying to do, because it is a lot of manually adding cloze tags to everything “else” on the note. But it will preserve your review history for each card.

Not automatically, but there are ways to do this. I’m thinking you won’t even need these to be cloze cards anymore – simple front/back cards should work fine, which is good, and will be easier than trying to fix all of the cloze markers. This will be faster and easier, but you’ll lose all of your review history, because you’ll be making new cards.

I’d ordinarily suggest exporting your notes as plain-text to do this, but since it’s only 21 notes, and you already want to split the lines apart, copy-paste might work better. Different text (or spreadsheet) editors work differently, so you might need to experiment with this a few different ways to find a sequence that works for you. The goal is to turn this list of items into one note per line, with the fields separated, and then import them into Anki to create new notes. Text Files - Anki Manual

You could do this in a robust text editor, as long as it handles the new-lines correctly – because you need each “row” of the table you have now to be interpreted as a separate line. Copy-paste all 21 notes sequentially into the same file. Use Find and Replace to get rid of the {{, }}, and c1-c21. Since the pipe-character is already a valid field separator, you should be able to import it pretty easily into a Basic (or custom) note type. Just don’t map the empty “columns” to any of your real fields.

Or if you use a spreadsheet editor – [I’m comfortable in Excel, so that’s the example you’re getting. I expect many spreadsheet editors will have similar functions.] – when you copy that multi-line block and paste it in Excel, it should interpret those separate lines as separate cells/rows. Then use “Text to Columns” to split those cells at the pipe-character into separate columns (formatted as text). If you want the “title” from your old 21 notes to show up on each of your new ones, you’ll need another column for that, and another field on your note. Use Find and Replace, same as above, to get rid of the cloze-markers. And then import this into a simple note type.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.