Dataview plugin snippet showcase

Here’s a milestone tracker I use. It creates a nice view for tracking your progress along some hobby or project.

You create a normal markdown list, for example tracking your milestones along
the journey of learning Javascript:

- 2022-02-06 Wrote a "Hello world" script, and it worked!
- 2022-02-11 Learned how to fetch data from a URL
- 2022-02-28 Learned about Promises
- 2022-03-03 Learned about await/async
- 2022-05-02 Started working with NPM libraries
- 2022-07-10 Published my first code to Github

```dataviewjs
const startDate = '2022-02-05'
dv.table(['Time', 'Event'],
  (await dv.io.load(dv.current().file.path))
    .split('\n').filter(x => x.startsWith('- '))
    .map(x => { const line = x.match(/- (\d{4}-\d{2}-\d{2}) (.+)$/)
      return [moment(line[1]).from(moment(startDate), true), line[2]] }))

And Dataview can render it to look like this, giving you a nice timeline of your milestones:

10 Likes