ekctl icon indicating copy to clipboard operation
ekctl copied to clipboard

Feature request: support multiple calendars when fetching events

Open duanefields opened this issue 8 months ago • 1 comments

Like many people, I have a Work calendar and Personal calendar and I often view them as one logical calendar on the Mac. It would be great if fetching events supported passing multiple calendar ids and returned events from all calendars. For each event it would be important to know which calendar it came from as well.

Not urgent, as I have a wrapper script that pulls both calendars and merges the results already. But a nice to have.

duanefields avatar Mar 28 '26 22:03 duanefields

Thanks @duanefields — landed in c05dddb. --calendar now accepts comma-separated IDs or aliases:

ekctl list events --calendar work,personal --from "2026-01-01T00:00:00Z" --to "2026-01-31T23:59:59Z"

Each event keeps its calendar.id / calendar.title in the output so the merged stream is still distinguishable when you pipe it through jq. Old single-calendar usage is unchanged — the comma is the only new bit.

Internally it's a straight pass-through to EKEventStore.predicateForEvents(withStart:end:calendars:), which already supports multi-calendar queries, so this just exposes what EventKit was already doing under the hood. Hopefully you can retire your wrapper script.

schappim avatar May 23 '26 05:05 schappim