April-Gras / obsidian-auto-timelines

Simple timeline generator plugin for story tellers using obsidian
MIT License
120 stars 5 forks source link

[Help Wanted] More Information on String Date Token Types #140

Closed thepancreator closed 7 months ago

thepancreator commented 7 months ago

I'm trying to set up timelines to use Calendar of Harptos month names, but I cannot figure out how to configure the String type tokens. The regex I'm using (?<year>-?[0-9]*)-(?<month>-?.*)-(?<day>-?[0-9]*) correctly matches the input I'm testing: -30000-Mirtul-01, but the output in the test pane shows "01 undefined -30000" (output formatting is {day} {month} {year}). I'm not sure what to put in the "Type the desired output of the token..." field. image image Further, I can't even test a string value in the "month" test field. It only allows numbers.

April-Gras commented 7 months ago

In your first screenshot, It seems you need to add the name of the months to the list. Careful to leave the first entry with a placeholder token if your date system doesn't have months starting at 0

thepancreator commented 7 months ago

Ah ok, I misunderstood the intended function, thinking that it would simply pull the regex-matched month field and slot it into the outputted date format in the matching {month} field. Thanks for the clarification!