Based on 17 ratings:
Sign in to rate
< Back

Add note id

<10kB. Updated 2013-02-27.

Description

Add the nid (note id) to a field named "Note ID" when adding or editing notes, when that field loses focus. When the “Note ID” field is the first field, this automatically satisfies the rule that the first field has to be unique. That means the “real” fields with interesting content don’t have to be unique. (Personally, for synonyms i like to have the same content in the “Expression” or “Meaning” fields, and then put further information in note or disambiguation fields.) The note id field is also useful when editing the data outside of Anki (text export, edit, text import). With the add-on, Anki can reliably match the notes on reimport, even when the first "interesting" field changed. There is also a menu item that goes through the collection and fills all fields called "Note ID" with the nid. More information, links to report issues &c. can be found at my github site. Updates:
  • 2012-07-29: The menu item.
  • 2012-08-10: link to github
  • 2012-12-19: Fixes to closing the add card window: Don’t ask when only nid field has text.
  • 2012-12-21: Undo the last fix. Caused problems when closing with ESC key. Have to work on that one.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into the desktop program:

1672832404
If you were linked to this page from the internet, please go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

Reviews
Ask a Question

Write a Review

Great add on
Posted on 2014-01-17

Does exactly what it says it does. I needed this add on when developing a flashcard app for android. Needed some way to uniquely identify flashcards in my SQLite table so I could map 1:* relationships when exporting from anki.

Thanks a bunch for writing this
Posted on 2013-11-10

This addon works excellent and allows me to more easily share decks with people. (For decks that have their content updated/modified from time to time).

Great for managing collections
Posted on 2013-08-01

Implemented this when me and my girlfriend started learning Esperanto. Great for keeping our collections up-to-date.