doug-101 / TreeTag

a structured information storage program
http://treetag.bellz.org
GNU General Public License v2.0
10 stars 3 forks source link

N-N relationship between leaf node and field? #6

Open pH142857 opened 1 month ago

pH142857 commented 1 month ago

Taking the Movies_sample example file, could a movie have several genres, or several services? Could we have a movie that is broadcasted at the same time by Netflix and by HBO, or which is at the same time Drama and Science-Fiction?

So, more formally: database-wise, could a leaf node bear several occurrences of a field (aka a N-N relationship)? Or, programming-wise, could a field be a table of elements?

This seems a rather obvious use case to me, am I missing something on how to achieve that?

duarteframos commented 1 month ago

No it doesn't seem to support that, but the sibling Treeline does, I think https://treeline.bellz.org/

doug-101 commented 1 month ago

You are correct, TreeTag doesn't support multiple entries in the same field.

I've also run into use cases where that would be handy. I've hesitated to add it because it's a big change to support it globally.

But this request made me reconsider, so I'll start looking into adding it. I'll let you know how it goes...