Substantial change that vastly affects the functionality of Timelines (Revamped): Merged PR from upstream repository - Support frontmatter to add timeline entries#58
Their notes about the change:
added functionality to use frontmatter to add a note to the timeline
added functionality to customize the frontmatter keys for better compatibility with other plugins
added a hover preview setting for viewing notes within a timeline without having to click on the header to open them.
BREAKING CHANGES:
changed data-class to data-color for clarity. You'll have to update your HTML events to use the new tag to retain your old color choices.
Consolidated timeline codeblocks. Any horizontal timelines will need to be changed from type ob-timelines-flat to just ob-timelines and a new line type=flat added. Any vertical timelines will need to have their list of tags prepended by tags= in order to properly parse.
Additional notes:
added some additional types and type checking
tweaked SCSS mixin add-color to make it easier to add additional color states depending on element state (selected, hover, etc.)
added an error message that displays in place of the timeline when there are no files that match the timeline's parameters
added pink and gray to list of available colors
added functionality to show frontmatter events alongside HTML events (showOnTimeline key)
added a notice in the top right corner for notes that matched the tags provided but had no events to display. Usually, this is if you have frontmatter without the new showOnTimeline key set to true
added a new command for inserting event frontmatter keys
corrected logic in the event counting functionality. Now it correctly counts frontmatter and HTML events
disabled the popover that appears on click if Display Note Preview on Hover is turned off
Due to the large amount of functionality changes in this PR, I've bumped the major version of this plugin to 2.0
Substantial change that vastly affects the functionality of Timelines (Revamped): Merged PR from upstream repository -
Support frontmatter to add timeline entries
#58Their notes about the change:
BREAKING CHANGES:
data-class
todata-color
for clarity. You'll have to update your HTML events to use the new tag to retain your old color choices.ob-timelines-flat
to justob-timelines
and a new linetype=flat
added. Any vertical timelines will need to have their list of tags prepended bytags=
in order to properly parse.Additional notes:
add-color
to make it easier to add additional color states depending on element state (selected, hover, etc.)pink
andgray
to list of available colorsshowOnTimeline
key)showOnTimeline
key set totrue
Display Note Preview on Hover
is turned offDue to the large amount of functionality changes in this PR, I've bumped the major version of this plugin to 2.0