Hi.
I have been trying to find a way to create custom tag-pill, but I am currently having no progress.
I am planning to create a study wiki for myself, which covers books and possible other ideas/concepts relating to all of those books.
This is my current situation:

My first problem is that I would like to use caption for the names in tag-pill drop-down. For example, instead of "Introduction - Book B", I would like to use just "Introduction".
The other problem I face is that I would like to hide some of the list items. For example "Love" is part of "Themes - Book B", but I also would like to tag that Tiddler with "Book B", so I can always relate all of the "child Tiddlers" to the topmost Tiddler.
So the result I would like to have replacing current tag-pill drop-down is the following structure:
If it is possible to create a custom JavaScript module to do that, I would be more than happy to do it myself, because I'm very familiar with JavaScript. The markup language used to define macros is bit weird for me.
Also, if anyone has a better solution to handle the presented problem, I am happy to hear another way of structuring my Tiddlers and tags.
My main goal is to link all child Tiddlers to topmost Tiddler and to create easy to read table of contents to quickly see structure of a book.
I really like TiddlyWiki, but I am still hesitant to start using it heavily, unless I can solve this problem.
Thanks.