-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Render hierarchical tags (e.g. "Parent|Child") as nested albums #275
Comments
Hi, I like this idea very much. Thanks for raising it. I'll try to troubleshoot your custom mapper, and as a second steps see if we can support this by default in |
Thank you, Romain. I just switched to using Perhaps the option to use other delimiters would be a welcome nicety (for users with extensive, already-tagged collections), but I don't think Thumbsup is wrong to prefer the forward slash as the default; it certainly seems most intuitive to me. Adobe Bridge defaults to |
Hi, sorry for the delay. Do you think it's reasonable if:
The awkward edge case is if you have a slash in your tags,e.g. I'm guessing it should keep |
Please don't apologise! I think the new flag would be best, with If Thumbsup interprets In any case, I think the lowest hanging fruit is probably to mention in the documentation that Thumbsup is already capable of interpreting hierarchical tags. |
In fact it's trickier than planned. Initially I thought we could change the whole hierarchy system to understand a different character. However, the code is based on file system helpers and specifically expects So I think the logic will have to be specific to IPTC keywords:
So a file with the keyword That would be easy to implement and test, and have minimal side effects! |
And agreed on the low hanging fruit! I'll update the documentation later, unless you want to submit a pull request to https://github.com/thumbsup/docs |
Could the functionality of the
%keywords
option for the--albums-from
flag be expanded to handle nested IPTC keywords?The section on keywords in the relevant IPTC specification doesn't say anything about hierarchies, but Adobe Bridge's default delimiter is a pipe, which is also recognised by LIghtroom Classic.
If an image were assigned the keywords
tag|subtag
andtag|subtag|subsubtag
, it would appear in the albums/tag/subtag
and/tag/subtag/subsubtag
, but not/tag
.In the meantime, can this behaviour be achieved using a custom mapping function (
--albums-from "file://...
)?I got as far as this function, which is supposed to recognise keywords containing one pipe: (apologies for my ignorance of JS)
but the gallery will not compile:
If the array
tags
is returned as a comma-delimited string, the gallery compiles, but the albums are recursively nested like so:Thank you for the excellent software.
The text was updated successfully, but these errors were encountered: