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

(idea) support task list filtering based on tags #69

Closed oblique01 closed 6 months ago

oblique01 commented 6 months ago

I often have lots of tasks in a day but only need to calendar schedule a few of them that are really important. It'd be helpful if (say) a tag could be used to filter in (or out) tasks that go into the ics file.

[Nice work by the way. I found this only recently and will pull this into my workflow. At a quick test, it looks like the ics file can also be used with BusyCal on Mac]

andrewbrereton commented 6 months ago

This is a good feature. I'll create a setting to which allows you to enter one (or more?) tags that you want to exclude from your iCalendar file. So you could set it to ignore tasks that contain #ignore, or #no-calendar, or #secret, or #pii, etc.

An alternative could be to only include tasks that have certain tags.

Or I could add both to the settings I suppose.

Let me know your thoughts.

andrewbrereton commented 6 months ago

image

andrewbrereton commented 6 months ago

Hi @oblique01

This has been done in release 1.19.0. Please update the plugin in Obsidian to see the changes.

Let me know if there are further issues.

oblique01 commented 6 months ago

Thanks lots and sorry for delayed reply, been ill. Looking at the notes quickly, looks like you implemented both inclusion and exclusion, which is probably worthwhile having both. This will really help hugely in not 'swamping' a calendar import with tasks that don't need to be scheduled. I'll lookin forward to using this when I'm back up to speed. Many thanks.

andrewbrereton commented 6 months ago

You're welcome. I hope you have a speedy recovery!