awtfdb icon indicating copy to clipboard operation
awtfdb copied to clipboard

tag parenting

Open lun-4 opened this issue 3 years ago • 1 comments

details about how it works here: https://hydrusnetwork.github.io/hydrus/advanced_parents.html

started tagging a lot of things and found the pain tag parenting would save me from

proposed ui:

$ atags parent create child_tag parent_tag
[.. verify consistency of tag tree (no loops) ..]
[.. iterate over each file and compare it against the tree, if they get child_tag, add parent_tag ..]

$ atags parent list
child_tag -> parent_tag
child_tag -> parent_tag
child_tag -> parent_tag

$ atags parent remove child_tag parent_tag
[.. verify consistency of tag tree (no loops) ..]
[.. iterate over each file and compare it against the tree, if they get child_tag, REMOVE parent_tag ..]

$ atags parent remove --preserve-files child_tag parent_tag
[.. verify consistency of tag tree (no loops) ..]
[.. dont iterate over any file ..]

last one is useful if, for example, artist:dj_kuroneko is a child of breakcore but they stopped doing just that, you might want to maintain all the existing files' relationships as they are breakcore, but new ones shouldn't.

lun-4 avatar Jun 19 '22 23:06 lun-4

at the moment tag parenting has its own CLI and database working, i have around 168 parent relationships already.

not closing the issue yet because the parent deletion question is still open due to #29.

lun-4 avatar Sep 02 '22 03:09 lun-4