seanlowe / obsidian-timelines

Create a timeline view of all notes with the specified combination of tags
https://seanlowe.github.io/obsidian-timelines/
MIT License
53 stars 2 forks source link

[Bug - Vertical] Sections of the date are visible when not provided #86

Closed JiawuTian closed 3 weeks ago

JiawuTian commented 2 months ago

I use the following template to write my notes.

image

And I use this code (NO backslas. I don't know how to display it correctly) to create timelines:

\```
ob-timeline
tags=timeline;MajorEvent;
\```

But I got the following result. I do NOT need the number after the date. How can I remove them?

image
seanlowe commented 2 months ago

Hey, sorry. Last release must have regressed this. I'll look into this soon!

(Edit) Side note: You can display your codeblocks by using 4 backticks (`) surrounding your codeblock. This scales, as I put 5 around this one to get it to render the 4 backticks

tags=some-tag;otherTag
JiawuTian commented 2 months ago

Thank you very much! The plugin is very suit for my need. I appreciate your effort in developing obsidian-timelines!

seanlowe commented 3 weeks ago

related: #87

seanlowe commented 3 weeks ago

OK - did some digging here. I found out that when you pass all sections of the date string, year, month, day, and hour, it behaves as you'd expect. You can pass something like "2024-01-00-00" to get "2024-1" on your timeline, or you can pass "2024-00-00-00" to show only the year.

My logic fails when there are pieces of the date string missing.

If you look at this screenshot: image

You can see each of the examples I described above.

So, this is a workaround but this validates that there does exist a bug and I can have a better idea of where to look for this. For now, the workaround is to simply put all sections of the date-strings. For any sections you don't want to show up, put it as 0

seanlowe commented 3 weeks ago

This is fixed in release 2.3.2