SETUP 1. Install and set up Google Drive File Stream (https://support.google.com/a/answer/7491144).
2. Set the trigger keyword as desired. If using the default keyword ('), disable Alfred's Quick File Search mode, which also uses the ' keyword (Alfred Preferences -> Features -> File Search).
3. Trigger using the keyword, then hold control and press return to initialize. Indexing must complete before searching will work.
4. (Optional) If desired, set certain files (such as Office documents) to open in Google Drive rather than in the default application. Right-click a file of the desired extension in Finder and select "Get Info". Under "Open With", select openInGoogleDrive.app (located in this workflow's folder) and click "Change all".
USAGE Trigger the workflow via the keyword (default=').
Note: The Spotlight search (default) is fast but unreliable and will also take time to be indexed at first use. If the Spotlight search is not returning results as expected, trigger the workflow via the keyword, hold option, and press return to search via the manual index (which is slow but reliable).
ADVANCED SETUP (only if using custom mount point) The workflow assumes Google Drive is mounted in the default location (/Volumes/GoogleDrive). For other locations, make sure the GoogleDriveDir environmental variable matches the mount point ("Default mount point" in Google File Stream's preferences panel).