mark-when / markwhen

Make a cascading timeline from markdown-like text. Supports simple American/European date styles, ISO8601, images, links, locations, and more.
https://markwhen.com
MIT License
3.48k stars 126 forks source link

Support for returning events or events with breaks #79

Open nclm opened 1 year ago

nclm commented 1 year ago

Trying Markwhen now and love it!

However, the timeline I’m trying to do needs many instances of the same event on the same line returning several times in time, with breaks/cuts. Syntax-wise, it could be done with a comma:

1991-04 / 2009-08, 2010-06 / 2010-08, 2014-07 / 2015-02: Event name // This event returns a three different date ranges

Any name, colour, location, image added to the event will be kept across all the returns of the events. It would be laid out on the same line.

Apologies if this is already possible but I missed it or if it has already been discussed somewhere else.

kochrt commented 1 year ago

https://jakubroztocil.github.io/rrule/ for my future self

aaparmeggiani commented 1 year ago

+1 for love it +1 for recurring events

Events on the same line, with either gaps and/or overlaps: list of events (like tasks) or expand/collapse groups?

kochrt commented 1 year ago

Support has been added for recurring events. I know that's not exactly what you were asking for but I may still do the repeated date ranges

Initially collapsed groups might also work well for your use case(s):

If you want an event group to start out collapsed, indent the group line definition.

  group Combined events
1991-04 / 2009-08:
2010-06 / 2010-08:
2014-07 / 2015-02:
Screen Shot 2023-01-18 at 6 38 35 PM
aaparmeggiani commented 1 year ago

That is great, Rob! I tested it on markwhen.com and it works for the timeline and gantt views, but it does no repeat in the calendar one where it just displays the initial events without the repetitions.

Also, is there a way to view what's the current deployed version?

Many thanks.

Screenshot 2023-01-19 at 14 38 47