• Stars
    star
    222
  • Rank 179,123 (Top 4 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

View Google Calendar events in Alfred

Google Calendar for Alfred

View Google Calendar events in Alfred. Supports multiple accounts.

Download & installation

Grab the workflow from GitHub releases. Download the Google-Calendar-View-X.X.alfredworkflow file and double-click it to install.

Usage

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 gcalconf.

  • 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.
  • today / tomorrow / yesterday β€” Show events for the given day.
    • <query> / ↩ / βŒ˜β†© / ⇧ / ⌘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 protected] β€” 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.

Date format

When viewing dates/events, you can specify and jump to a particular date using the following input format:

  • YYYY-MM-DD β€” e.g. 2017-12-01
  • YYYYMMDD β€” e.g. 20180101
  • [+|-]N[d|w] β€” e.g.:
    • 1, 1d or +1d for tomorrow
    • -1 or -1d for yesterday
    • 3w for 21 days from now
    • -4w for 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.

Configuration

There are a couple of options in the workflow's configuration sheet (the [x] button in Alfred Preferences):

Setting Description
CALENDAR_APP Name of application to open Google Calendar URLs (not map URLs) in. If blank, your default browser is used.
EVENT_CACHE_MINS Number of minutes to cache event lists before updating from the server.
SCHEDULE_DAYS The number of days' events to show with the gcal keyword.
APPLE_MAPS Set to 1 to open map links in Apple Maps instead of Google Maps. This option can be toggled from within the workflow's configuration with keyword gcalconf.

Licensing & thanks

This workflow is released under the MIT Licence.

It is heavily based on the Google API libraries for Go (BSD 3-clause licence) and AwGo libraries (MIT), and of course, Google Calendar.

The icons are from or based on Font Awesome and Weather Icons (both SIL).

Special thanks to @diffmike for adding the "Add New Event" feature.

Privacy

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.

More Repositories

1

alfred-workflow

Full-featured library for writing Alfred 3 & 4 workflows
Python
2,970
star
2

awgo

Go library for Alfred 3 + 4 workflows
Go
859
star
3

alfred-convert

Convert between different units in Alfred
Python
721
star
4

zothero

Rapidly search and cite Zotero entries from Alfred
Python
477
star
5

alfred-stackexchange

Search StackOverflow.com from Alfred
Python
434
star
6

alfred-fixum

Fix Alfred 3 Python workflows affected by the Sierra/Alfred-Workflow background process bug
Python
369
star
7

alfred-ssh

Open SSH/SFTP/mosh connections from Alfred 3+
Go
356
star
8

alfred-firefox

Search and control Firefox from Alfred
Go
342
star
9

alfred-repos

Browse, search and open Git repositories in Alfred
Python
313
star
10

alfred-searchio

Alfred workflow to auto-suggest search results from multiple search engines and languages.
HTML
306
star
11

alfred-pwgen

Generate passwords with Alfred
Python
290
star
12

alfred-fakeum

Generate fake test data in Alfred
Python
288
star
13

alfred-reddit

Browse Reddit from Alfred
Python
214
star
14

alfred-safari-assistant

Alfred 3+ workflow to search and use Safari bookmarks, history, reading list and tabs.
Go
190
star
15

alfred-vpn-manager

Manage Tunnelblick & Viscosity VPN connections from Alfred
Python
154
star
16

alfred-smartfolders

Quick access to your Smart Folders (Saved Searches) from Alfred
Python
119
star
17

alfred-fuzzy

Fuzzy search helper for Alfred 3+ workflows
Python
93
star
18

alfred-appscripts

Alfred workflow to search and run/open AppleScripts for the active application
Python
87
star
19

alfred-sublime-text

Filter and open your Sublime Text (2 and 3) project files from Alfred.
Go
73
star
20

i-sheet-you-not

Automagically turn Excel spreadsheets into Alfred 3 Workflows
Python
67
star
21

alfred-mailto

Send emails to recipients and groups from Alfred
Python
64
star
22

alfred-fuzzyfolders

Fuzzy search across folder subdirectories
Python
57
star
23

alfred-unicode

Preview Unicode characters and emoji in Alfred
Go
57
star
24

alfred-booksearch

Search Goodreads.com from Alfred
Go
56
star
25

alfred-similar-image-search

Google Image searches based on local files via Alfred
Python
50
star
26

alfred-packal-search

Search Packal.org's collection of Alfred workflows from Alfred
Python
43
star
27

alfred-services

Run macOS services from Alfred
Go
39
star
28

go-safari

Access Safari bookmarks, reading list, history and tabs (macOS)
Go
38
star
29

alfred-relative-dates

Alfred workflow to generate relative dates in different locales
Python
35
star
30

alfred-network-location

List, filter and activate network locations from within Alfred
Python
32
star
31

alfred-duden

Search the duden.de German dictionary from Alfred. With auto-suggest.
Python
32
star
32

alfred-index-demo

Demonstration of using sqlite as a search index in Alfred
Python
26
star
33

alfred-default-folder-x

Access your Default Folder X favourites and recent items in Alfred
Python
25
star
34

alfred-forklift

Filter ForkLift favourites in Alfred
Go
23
star
35

alfred-resolve-url

Alfred workflow to resolve HTTP redirects and return the canonical URL
Python
14
star
36

alfred-gifs

Say it with GIFs (and Alfred)
Python
12
star
37

bundler-icon-server

Generate PNG icons from icon fonts like Font Awesome
HTML
12
star
38

go-env

Access environment variables & populate structs from them
Go
11
star
39

alfred-errnum

Search macOS errors in Alfred 3
Python
10
star
40

alfred-mpd

Control mpd music player from Alfred 3
Python
9
star
41

go-fuzzy

Fuzzy matching & sorting for Go
Go
9
star
42

alfred-glosbe

Translate in Alfred using Glosbe.com
Python
8
star
43

CopyLink.mmBundle

MailMate Command to copy a link to the currently selected email
Python
8
star
44

alfred-transmit

Rapidly search Transmit favourites in Alfred
Go
5
star
45

alfred-bundler-python-demo

Demo Workflow showing how to use the Alfred Bundler in Python
Python
5
star
46

cookiecutter-alfred-workflow

cookiecutter template for Alfred 2 workflows
Python
4
star
47

alfred-star-ratings

Add star ratings to your files on OS X with Alfred
Python
4
star
48

alfred-excel-demo

Demo workflow showing how to use an Excel file as a data source for an Alfred Script Filter
Python
4
star
49

alfred-reminders-demo

Goto lists in Reminders.app
Python
3
star
50

bundler-icon-server-iconpacks

Icon packs for Bundler Icon Server
2
star
51

alfred-subdir-search

Alfred 2 Workflow to search subdirectories
Python
2
star
52

alfred-flixsearch

Search FlixSearch.io from Alfred 2
Python
2
star
53

www.deanishe.net

Hugo static site source
Go
1
star
54

just-a-test

Test Repo for GH API
1
star
55

alfred-workflow-dummy

A dummy repo for testing Alfred-Workflow's update functionality
Python
1
star
56

deanishe.github.io

Generated contents of www.deanishe.net
HTML
1
star