keith / reminders-cli

A simple CLI for interacting with macOS reminders
MIT License
663 stars 52 forks source link

FR: support for alldayDueDate #79

Closed chrisgrieser closed 3 months ago

chrisgrieser commented 5 months ago

The reminders.app supports allday due dates, ie.e. due dates without a specific date. Using JXA, we can create such like this:

const today = new Date();
const newReminder = Application("Reminders").Reminder({ 
    name: input.trim(), 
    alldayDueDate: today
});
Application("Reminders").defaultList().reminders.push(newReminder);

When using the reminders-cli, and add a new reminder:

reminders add MyList--due-date=today "foobar"

It always also sets 00:00 as due time. Explicitly using a date without a time, e.g. --due-date=2024-03-08 also results in a due time of 00:00.

keith commented 3 months ago

included in 2.5.1

chrisgrieser commented 3 months ago

Thank you