insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.32k stars 314 forks source link

FEATURE REQUEST: Hooks into `eventTypes` (e.g. "Out of Office" or "Focus Time") #685

Open jonathanpberger opened 4 months ago

jonathanpberger commented 4 months ago

I'd like to CRUD "Focus Time" or "Out of Office" events, which live in the eventTypes object, e.g.

When I gcalcli agenda --type "all" --tsv, Then I would see something along the lines of

2024-07-12  00:00   2024-07-13  default 00:00   Home
2024-07-12  08:30   2024-07-12  default 09:00   Meet with FOO
2024-07-12  08:45   2024-07-12  FocusTime 09:00 Write the BAR report
2024-07-12  09:00   2024-07-12  OutOfOffice 09:30   Work out with BAZ

Alternately,

When I gcalcli agenda --type "FocusTime" --tsv, Then I would see only

2024-07-12  08:45   2024-07-12  FocusTime 09:00 Write the BAR report
WizardBit commented 1 month ago

+1 This is exactly what I was looking for. Its unfortunate that this isn't already a feature.

michaelmhoffman commented 5 days ago

I see two separable features here:

  1. Adding to agenda and search subcommands the ability to search by eventTypes
  2. Adding details handlers in gcalcli.details to expose the eventType data for each event to the user. Setting eventType via the patch action is not allowed, but via insert action is.