alfred-chrome-history

Search your Google Chrome history in Alfred
授权协议 Readme
开发语言 JavaScript
所属分类 应用工具、 操作系统工具
软件类型 开源软件
地区 不详
投 递 者 阴禄
操作系统 OS X
开源组织
适用人群 未知
 软件概览

Alfred Chrome History Workflow

Access your Google Chrome history from Alfred with ch {query}.

How to install

Download the workflow from the releases page and install by double-clicking it.

From source

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.

Then run make dev to install requirements and set the repository up to be used as a workflow.

Configuration

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.

Choosing the correct Google Chrome profile directory

The Alfred script filter is set up to use the default Chrome profile located in ~/Library/Application Support/Google/Chrome/Default. If you need to use a different profile, update the PROFILE environment variable in the Alfred workflow's script filter. This could be the necessary if you have signed in to Chrome with different or multiple accounts, and usually the profile directory is located in something like Profile 1. If that is the case, the entire Script contents in the workflow's script filter would be:

PROFILE="~/Library/Application Support/Google/Chrome/Profile 1"
PATH="env/bin:$PATH"
python chrome.py "${PROFILE}" "{query}"

In a terminal, the following command can help you find the exact location of the profile directory that the workflow needs:

ls ~/Library/Application\ Support/Google/Chrome/ | grep Profile

Disabling favicon support

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

How to build

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.

make dev also puts dependencies in place so that the workflow can work when symlinked to the correct workflows directory as mentioned above.

Thanks

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.

 相关资料
  • chrome-bookmarks Chrome/Canary/Chromium bookmarks search workflow for Alfred Google Chrome (chrome, chrome-profiles) Google Chrome Canary (canary, canary-profiles) Chromium (chromium, chromium-profile

  • alfred-polyglot Translate text using Google Translate in Alfred Alfred forum thread Install $ npm install --global alfred-polyglot Requires Node.js 7.6+ and the Alfred Powerpack. Setup Set the default

  • Homebrew + Alfred Manage Alfred with Homebrew. Workflows require the paid Powerpack upgrade. Install brew tap danielbayley/alfredbrew alfred install #workflow #theme or with brew bundle using a Brewfi

  • Alfred Workflows Please read contribution guidelines before contributing. Collections Design Developer Documentation Learn Fun Libraries macOS Music Productivity Remote Social Translation Travel Utili

  • Searchio! workflow for Alfred Auto-suggest search results from multiple search engines and languages. Contents Download and installation Usage Configuration Workflow Configuration Sheet In-Workflow Co

  • Alfred Atom Workflow Simple workflow that allows you to browse and open Atom projects. Requirements NodeJS 10+ Atom Project Manager package Alfred 4 with paid Alfred Powerpack Installation Yarn / NPM