Merge Notes Add-on

Anki Merge Notes Add-on

This Anki add-on allows you to easily merge multiple selected notes/cards directly from the Anki Browser into a single note.

Install from AnkiWeb

Features

  • Merge Multiple Notes: Select two or more cards in the Anki Browser, right-click, and choose “Merge Notes…”.
  • Cross-Type Merging: You can merge notes of different Note Types. The add-on extracts all available fields from the selected notes.
  • Field Mapping: A unified graphical interface lets you map any of the source fields to the target fields of your chosen Note Type.
  • Custom Separator: Choose a custom text or HTML separator (like <br><hr><br>) to insert between the merged contents.
  • Remove Cloze Syntax: Option to automatically strip out {{c1::...}} syntax from the combined text, keeping only the raw text, which is especially useful when merging cloze notes into a basic non-cloze note type.
  • Automatic Cleanup: Option to automatically delete the original source notes after a successful merge.
  • Tags Preservation: The newly merged note will inherit all tags from the original notes.

Installation

From AnkiWeb (Recommended)

  1. Open Anki.
  2. Go to ToolsAdd-ons.
  3. Click Get Add-ons....
  4. Paste the code: 1774874894.
  5. Restart Anki.

Manual Installation

  1. Copy the addon folder contents to your Anki addons21 directory, or use make_ankiaddon.py to build an .ankiaddon package.
  2. Restart Anki.

Usage

  1. Open the Anki Browser.
  2. Select two or more cards/notes.
  3. Right-click and select “Merge Notes…” from the context menu, or from the Notes menu in the menu bar.
  4. Choose Target Note Type: Select the model you want for the new merged note.
  5. Map Fields: For each target field, check the boxes of the source fields you want to combine into it.
  6. Configure Options:
    • Set a custom separator.
    • Choose whether to remove cloze syntax.
    • Choose whether to delete the original notes.
  7. Click OK to merge.
1 Like

I don’t see anything in your description or interface about what happens to the existing cards and card types for the notes. I don’t need a response (since I’m unlikely to use the add-on myself), but that seems like something that needs to be addressed, and handled carefully for users.

2 Likes

IMO those have already been explained. Since there is an “Automatic Cleanup” option, I think it will remain unless the user disables it, also the “Target Note Type” option should be the note type of the new card.

If I’m following you correctly, that switch has 2 possible outcomes – (1) all existing cards (and their review history) are deleted, or (2) none of the existing cards would be deleted, and you’d now have many duplicates (cards from both of the original notes and the new note).

I can see why some users might want #1 – but only for merging completely “unstudied” (all New cards) notes. If they are merging a studied note with an unstudied note, or merging 2 studied notes, that would be a terrible result.

[I can’t as clearly see a use-case for #2, unless this automatic merge of the notes is meant to be just one step in a process that will also involve using other add-ons to manually address cards and review history.]

I think this add-on should make it explicit that the only thing it will generate is a newly created note with all New cards. Silently deleting active cards and review history is a pretty big deal.

2 Likes

Yes you are right, I made this addon to help me clean up AI generated cards
I have updated the readme with following

:warning: Important: Review History & Duplicate Cards

When you merge notes, the add-on creates a newly created note with all “New” cards. It is important to understand how this affects your study history:

  1. No History Transfer: Review history from the original cards is not transferred to the new merged cards.
  2. Deletion of Original Notes: If the “Delete original notes” option is enabled, the source notes and their associated cards (including all review history) are deleted.
  3. Duplicate Cards: If the “Delete original notes” option is disabled, the original notes remain intact, resulting in duplicates (the original cards with their history, and the new merged cards as “New” cards).

Recommendation: This add-on is best suited for merging unstudied (New) notes. Use caution when merging notes that have active review history, as the newly generated cards will not inherit their progress.

2 Likes

Excellent clarification. I’m sure users will appreciate that.