Anki add-on: Add Unique Identifier to all Notes

Anki Add-on for Unique Note Identification This add-on is a modified (copy) of "Add note id" for Anki23+. Original : Add note id / Author : ospalh This Anki add-on is designed to ensure that each note has a universal unique identifier (UUID) by adding a UUID to a specified field (“Note ID”). It provides both a manual option to add UUIDs to all existing notes via a menu item and an automatic option that adds a UUID when a note is loaded into the editor if the field is empty. This functionality is useful for ensuring that notes are uniquely identifiable, which can be important for tracking, exporting, or synchronization purposes. How It works Menu Item : A new menu item labeled “Add Note IDs” will appear in Anki’s Tools menu. User Prompt : When you select the “Add Note IDs” menu item, you will be prompted to confirm the action. Progress Dialog : A progress dialog will show the status of the operation as UUIDs are added to notes. Field Creation : The add-on will ensure that the “Note ID” field exists in all note types. If the field does not exist, it will be created. UUID Assignment : UUIDs will be assigned to the “Note ID” field in all notes where the field is empty. Automatic UUIDs in Editor : When a note is loaded in the editor, the add-on will check if the “Note ID” field exists and is empty. If it is missing, the field will be added, and a UUID will be assigned if the field is empty. To to proper use this Add-on, change “Note ID" field to the first position of the note type field. Summary This add-on ensures that each Anki note has a unique identifier, aiding in the tracking, exporting, and synchronization of notes. The UUIDs can be added manually through a menu item or automatically when notes are loaded in the editor.