obsidian-timelines icon indicating copy to clipboard operation
obsidian-timelines copied to clipboard

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

Open JiawuTian opened this issue 1 year ago • 6 comments

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

JiawuTian avatar Aug 17 '24 13:08 JiawuTian

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

````
```ob-timeline
tags=some-tag;otherTag
```
````

seanlowe avatar Aug 21 '24 18:08 seanlowe

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

JiawuTian avatar Aug 22 '24 05:08 JiawuTian

related: #87

seanlowe avatar Oct 04 '24 17:10 seanlowe

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 avatar Oct 04 '24 19:10 seanlowe

This is fixed in release 2.3.2

seanlowe avatar Oct 05 '24 02:10 seanlowe

This is fixed in release 2.3.2

Sorry for post my problem again here. I use the version 2.4.0 of obsidian-timelines and it seems not solve my problem I had encountered. Why?

Image

Image

Image

JiawuTian avatar Mar 05 '25 13:03 JiawuTian