Access your Google Chrome history from Alfred with ch {query}
.
Clone this repo and symlink it to <sync directory>/Alfred.alfredpreferences/workflows/alfred-chrome-history
. Your Alfred sync directory can be found going to Preferences → Advanced → Syncing.
Or download the workflow from the releases page.
The workflow should work out of the box with the ch
prefix. If you'd like to change this, update the keyword in the Alfred workflow's script filter.
The Alfred script filter is set up to use the default Chrome profile. If you need to use a different profile, update the PROFILE
environment variable in the Alfred workflow's script filter.
By default, the script tries to grab favicons from a separate database. This can sometimes slow down the results, which is not desirable. To turn off favicon support, pass --no-favicons
in the Alfred workflow's script filter. The last line of the script should look like the following:
python chrome.py "${PROFILE}" "{query}" --no-favicons
make workflow
will put any dependencies in place and build alfred-chrome-history.alfredworkflow
in the current directory.
Note that sitepackages.py
attempts to find alfred.py
and copy it into the workflow archive. Please let me know if this script fails to find alfred.py
. It attempts to find it in both global installations and within a virtualenv, but I have only tested this on my local machine.
This workflow uses the wonderful alfred-python library. It is provided in the generated workflow and does not need to be installed globally or otherwise before using this workflow.