How to avoid/prevent name collisions on labels and other attributes, when they're defined and used by add-ins #4549
Unanswered
InjAnnuity1
asked this question in
Q&A
Replies: 1 comment 4 replies
-
As in coding, namespaces are the obvious choice. Simply prepend a unique string to the descriptive attributes. Example #sottey.tje.datanote The odds on someone else using that unintentionally are tiny. Am I missing a requirement here? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context: I plan to evaluate Trilium (and plug-ins) for potential developer/business use. I've used CherryTree, TreeLine, TreePad, NoteCase Pro, ToDoList, MyInfo, and others, but none was quite the right fit. TreeLine came closest, data-wise, with the ability to define strongly-typed notes, with named, strongly-typed datums, but it dropped its ability to add plugins years ago.
Trilium looks like it can do the same job, and much, much more.
Suppose I was going to create my own add-in, with its own set of note attributes. How would I keep my add-in's note-attribute names from colliding with Trilium's (present and future), or from other add-ins' names? Is there a naming convention in place to prevent such collisions? If not, can we hash one out, here?
Beta Was this translation helpful? Give feedback.
All reactions