Feature request: Add capability for automatically creating icons based on text labels within pages
The module works amazingly with regular journal entries. However, it does not currently support dragging text labels within a journal entry page onto a scene.
I came across this behavior when trying to create a map using journal entries imported by MrPrimate's DnDBeyond adventure importer. It organizes the journal entries in such a way that you get the following structure:
- Journal entry (e.g. "Chapter 4: Castle Ravenloft")
- Page (e.g. "Walls of Ravenloft")
- Text label (e.g. "K1. Front Courtyard")
- Text label (e.g. "K2. Center Court Gate")
- Page (e.g. "Main Floor")
- Text label (e.g. "K7. Entry")
- Text label (e.g. "K8. Great Entry")
- Page (e.g. "Walls of Ravenloft")
Or with some graphical context:
Now, whenever I try dragging such a text label (Which would contain the corresponding match for the regular expression, e.g. "K1. Front Courtyard") onto a scene, instead of checking the RegEx against the text label, the module still seems to try to check against the journal entry title. At least that is what I have gathered from my admittedly limited understanding of Javascript. Since that title does not match any of the enabled RegExs, it does not autofill the note creation dialog and hence also can't use the quick add feature.
I tried fiddling around in the code myself to get this behavior to work for quite some time now but due to the combination of the complexity of FVTT's API and my lacking JS knowledge, I could not figure out how to access the contents of a JournalEntry. However, I do believe that this is a feature worth looking into, it would make using imported journal entries with similar structures a lot easier and quicker.
I hope my request is not too much to ask and somewhat understandable