But opening the dashboard file several times will create several timers - a timer will be created every time the note is rendered.
I would need to dig through dataview docs to see if thereās a way to clean up when the dataview is destroyed.
Itās probably not a big issue, but something to keep in mind.
@dml0sc āSome time next weekā ended up being a couple of weeks, but hereās the first version of the timeline plugin!
Iāll figure out how to get it to the Obsidian community plugins list a bit later. For now, you can get the release files from here: Releases Ā· taneltm/obsidian-year-timeline Ā· GitHub
For now, youāll need to place the files manually in your vaultās .obsidian/plugins/obsidian-year-timeline directory.
@holroy Added the daily notes integration you suggested. Itās experimental and disabled by default. You can hover over the timeline to see a tooltip of the target date, then when you click it should open the daily note on that date.
@megclaypool Of course I need testers! If somethingās buggy or you get new ideas, it would be great if you could write them in the GitHub issues
It should be backwards compatible with the CSS snippet version of the timeline, so if you used that before. You should probably disable the CSS snippet when you use the plugin.
Edit:
If you have Appearance ā Show inline title enabled in the settings and you try to move the timeline closer with a CSS snippet, then this can happen, because embeds have contain: paint !important applied to them.
Hereās a workaround:
[data-timeline] {
margin-top: -2% !important; /* or some other method for moving the timeline */
}
.markdown-source-view.mod-cm6 .cm-content > [contenteditable=false]:has([data-timeline]) {
contain: unset !important;
}
Iāll include a proper fix in the next update.
Original post:
It looks like the timeline height is reduced.
Do you have any custom styling applied, maybe something that would reduce the gap between the timeline and the title?
Which theme are you using? Some of the ones Iāve tested are:
Default
Obsidian Nord
Prism
Minimal (Legacy)
Sanctum (Legacy)
If you attempted to move the timeline closer to the title by changing the timeline height, that would result in this situation.
What you could do instead is:
[data-timeline] {
margin-top: -2% !important;
}
This moves the timeline up based on the viewport width, and the rest of the content moves up as well. This way the timeline element actually overlaps with the title.
The downside of this is that the icons would appear on top of the date at the beginning of the year.
But if you havenāt made any custom modification, could you try to a different theme and let me know if it works for you in other themes? Also disable any CSS snippets or plugins which might affect page styling.
Hi thanks for answering, so i use Prism and disabled the show inline title but doesnāt make change, i also disabled my snippets and itās not the problem. And i donāt use the plugin but just this :
With the plugin system, you can pretty much do anything, so yes, itās possible.
Week timeline is quite easy to make. Month timeline is trickier because each month has a variable number of days. The Day timeline would be the trickiest, because youād probably want to keep time timeline up-to-date with every minute that passes.
The Day timeline wouldnāt be possible with pure CSS/SVG, but would be possible with the help of dataviewjs or if it was built into the Timeline plugin.
I apologise for my apparent stupidity, but I donāt understand how to install the plugin
I downloaded the repo from git as a .zip and copied all the content in my vault/.obsidian/plugins/obsidian-year-timeline
This show up as a plugin in the community plugin tab but it fails to load every time I try to enable it. Looking at the files they show a lot of errors, starting from main.ref.ts at line 1 āCannot find module āobsidianā or its corresponding type declarationsā
The error in the obsidian console is
Plugin failure: obsidian-year-timeline Error: ENOENT: no such file or directory, open āC:\Users\Fear\Documents\vaults\Main.obsidian\plugins\obsidian-year-timeline\main.jsā