andrewbrereton / obsidian-to-ical-plugin

This is a plugin for Obsidian that searches your vault for tasks that contain dates, and generates a calendar in iCal format that can be imported into your preferred calendar application.
MIT License
56 stars 10 forks source link

Allow user to choose which dates are used. #47

Closed andrewbrereton closed 7 months ago

andrewbrereton commented 7 months ago

Fixes #30

Tasks can have one or more dates. From either a single raw date in YYYY-MM-DD format, to dates for when a task starts, is scheduled or is due. This setting is to customise which date is chosen when building your iCalendar.

Prefer due date (default)

Prefer due date means the following sequence will be followed:

  1. If the task has a due date and a start date, they will be the start and end date
  2. If the task only has a due date, that will be used
  3. If the task only has a start date, that will be used
  4. If neither are found, just find any date related to that task

Prefer start date

Prefer start date means the following sequence will be followed:

  1. If the task only has a start date, that will be used
  2. If the task only has a due date, that will be used
  3. If neither are found, just find any date related to that task

Create an event per start/scheduled/due date

Create an event for each start date, scheduled date and due date associated with a task. This means if your task has all three dates, then three separate events will be created in your calendar.

  1. If there is a start date, an event will be created using that date. The summary will be appended with a 🛫.
  2. If there is a scheduled date, an event will be created using that date. The summary will be appended with a ⏳.
  3. If there is a due date, an event will be created using that date. The summary will be appended with a 📅.
  4. If none of the above dates were found, then take any old date that we can find