SuperMemoAssistant icon indicating copy to clipboard operation
SuperMemoAssistant copied to clipboard

Add Unique ID property to IElement

Open bjsi opened this issue 4 years ago • 3 comments

Description

Element IDs may not remain unique over time because deletion allows new elements to take the deleted element's ID.

Environment

IElement interface.

Motivation

Supports any plugin that needs to maintain a reliable unique reference to an element over time.

bjsi avatar May 22 '20 12:05 bjsi

Plan:

  • Unique ID will be a string in the form of "{id}-{timestamp}"
  • Creation datetime info not currently available, so need to RE repetition data. image
  • Repetition No. 1 represents creation datetime
  • Repetition data stored in these files: image
  • Could also use the native functions if RE-ing the files doesn't work
  • Use 010 editor to figure out structure of the file(s)
  • Create new registry similar to the EmptyFileSlots registry

bjsi avatar Oct 07 '20 09:10 bjsi

Were you able to make progress ?

alexis- avatar Nov 05 '20 14:11 alexis-

Added a placeholder method IElement::UniqueId.

alexis- avatar Apr 12 '21 17:04 alexis-