Love this? Please consider supporting its creator by starring or sponsoring this project on GitHub!
From the project's README:
Google Calendar for Alfred
View Google Calendar events in Alfred. Supports multiple accounts.
- Google Calendar for Alfred
Grab the workflow from GitHub releases. Download the
Google-Calendar-View-X.X.alfredworkflow file and double-click it to install.
When run, the workflow will open Google Calendar in your browser and ask for permission to access your calendars. If you do not grant permission, it won't work. The workflow requests permission to edit your calendars, as this is needed for the "Add New Event" feature (keyword
gnew). It does not otherwise alter your calendars or events in any way.
You will also be prompted to activate some calendars (the workflow will show events from these calendars). You can alter the active calendars or add/remove Google accounts in the settings using keyword
gcal— Show upcoming events.
<query>— Filter list of events.
↩— Open event in browser or day in workflow.
⌘↩— Open event in Google Maps or Apple Maps (if event has a location).
⌘Y— Quicklook event details.
yesterday— Show events for the given day.
⌘Y— As above.
gdate [<date>]— Show one or more dates. See below for query format.
↩— Show events for the given day.
gnew [<query>]— Add a new event in the one of active calendars. (example: Some meeting at Office at 5pm with Ian)
↩— Create event in selected calendar.
gcalconf [<query>]— Show workflow configuration.
Active Calendars…— Turn calendars on/off.
↩— Toggle calendar on/off.
Add Account…— Add a Google account.
↩— Open Google login in browser to authorise an account.
email@example.com— Your logged in Google account(s).
↩— Remove account.
Open Locations in Google Maps/Apple Maps— Choose app to open event locations.
↩— Toggle setting between Google Maps & Apple Maps.
Workflow is up to Date/
An Update is Available— Whether a newer version of the workflow is available.
↩— Check for or install update.
Open Locations in XYZ— Open locations in Google Maps or Apple Maps.
↩— Toggle between applications.
Open Documentation— Open this page in your brower.
Get Help— Visit the thread for this workflow on AlfredForum.com.
Report Issue— Open an issue on GitHub.
Clear Cached Calendars & Events— Remove cached lists of calendars and events.
When viewing dates/events, you can specify and jump to a particular date using the following input format:
3wfor 21 days from now
-4wfor 4 weeks ago
Add event format
The "Add New Event" feature (keyword
gnew) creates an event using Google Calendar's natural language syntax. This doesn't appear to be properly documented anywhere, but it is pretty powerful. You can specify event title, location, time & duration and repetition. Some examples:
Wash pants— creates an event titled "Wash pants" starting now using your default event duration
Clean pants party tomorrow— creates an all-day event for tomorrow title "Clean pants party"
Drink beer every day 2000-2200— creates an event titled "Drink beer" starting at 8pm, finishing at 10pm, and repeating every day.
There are a couple of options in the workflow's configuration sheet (the
[x] button in Alfred Preferences):
||Name of application to open Google Calendar URLs (not map URLs) in. If blank, your default browser is used.|
||Number of minutes to cache event lists before updating from the server.|
||The number of days' events to show with the
This workflow is released under the MIT Licence.
Special thanks to @diffmike for adding the "Add New Event" feature.
The data used and accessed by this workflow are stored exclusively on your own Mac. Nothing is shared with anyone. When you authorise this workflow to access your Google Calendars, the only person you are enabling to read that data is you.