Skip to content

How to mimic the 'today' view? (and similar) #71

@0xdevalias

Description

@0xdevalias

I was hoping I could mimic the 'today' view to get access to my reminders from CLI, but having a quick look through the help, i'm not sure if this is possible currently.

I tried show-lists, but it only shows the actual underlying reminder lists (not the meta categories for 'Today', 'Scheduled', 'All', 'Flagged', 'Completed')

Since show requires me to pass a <list-name>, that wouldn't let me mimic the 'Today' view, as it gets from all my lists.

I tried show-all --due-date today, but that only showed me a single reminder, presumably with the due date set to exactly todays date; whereas I currently have 130 reminders in the 'Today' view.

Potential Solutions

I haven't thought too deeply about this yet, but off the top of my head, some potential solutions:

  • add --due-on-or-before-date / --due-after-date or similar
  • add --due or --overdue or similar
  • add new commands/aliases/flags/similar to allow showing the 'meta categories':
    • Today: I don't think this exists currently
    • Scheduled: I don't think this exists currently
    • All: can be done with just show-all
    • Flagged: I don't think this exists currently
    • Completed: Can be down with show-all --include-completed / show-all --only-completed

See Also

This might be tangentially related to:

And if the Reminders app counts these 'meta categories' as 'smart lists', then it may also be related to:

Additional Context

OVERVIEW: Interact with macOS Reminders from the command line

USAGE: reminders <subcommand>

OPTIONS:
  -h, --help              Show help information.

SUBCOMMANDS:
  add                     Add a reminder to a list
  complete                Complete a reminder
  uncomplete              Uncomplete a reminder
  delete                  Delete a reminder
  edit                    Edit the text of a reminder
  show                    Print the items on the given list
  show-lists              Print the name of lists to pass to other commands
  new-list                Create a new list
  show-all                Print all reminders

  See 'reminders help <subcommand>' for detailed help.
OVERVIEW: Print the items on the given list

USAGE: reminders show <list-name> [--only-completed] [--include-completed] [--sort <sort>] [--sort-order <sort-order>] [--due-date <due-date>] [--format <format>]

ARGUMENTS:
  <list-name>             The list to print items from, see 'show-lists' for
                          names

OPTIONS:
  --only-completed        Show completed items only
  --include-completed     Include completed items in output
  -s, --sort <sort>       Show the reminders in a specific order, one of: none,
                          creation-date, due-date (default: none)
  -o, --sort-order <sort-order>
                          How the sort order should be applied, one of:
                          ascending, descending (default: ascending)
  -d, --due-date <due-date>
                          Show only reminders due on this date
  -f, --format <format>   format, either of 'plain' or 'json' (default: plain)
  -h, --help              Show help information.
OVERVIEW: Print all reminders

USAGE: reminders show-all [--only-completed] [--include-completed] [--due-date <due-date>] [--format <format>]

OPTIONS:
  --only-completed        Show completed items only
  --include-completed     Include completed items in output
  -d, --due-date <due-date>
                          Show only reminders due on this date
  -f, --format <format>   format, either of 'plain' or 'json' (default: plain)
  -h, --help              Show help information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions