/alfred-stackoverflow

Alfred 5 workflow for searching StackExchange.

Primary LanguagePythonMIT LicenseMIT

Alfred 5 StackExchange Search

Installation

  1. Clone this repository.
  2. Double-click StackExchange Search.alfredworkflow.

Usage

Upon installation

Upon installation, invoke stack-cache-sites keyword to collect sites info. This make takes several minutes. Notification will be posted on complete.

Afterwards

There are two options to query the workflow.

  1. Invoke stack script filter, select one site from list, then input the query for that site;
  2. Create a script filter yourself that connects to the Open URL block, and invoke that script filter. An illustrative shortcut script filter has already been created, named so for searching Stack Overflow.

Detailed usage:

  • stack script filter:
    • query format: the site name in which to search
    • command + enter: reveal the site icon in Finder
    • command + c: copy the site_id (useful when creating shortcut script filters)
    • command + l: show the site_id in large type
  • any script filter connected to the Open URL block:
    • query format: query words [#tag1 #tag2] [// local search words], where query words and #tag1 #tag2 are used to request the StackExchange server, and // local search words is used to search in local cache (thus cheaper)
    • command + c: copy the question title
    • command + l: show the question title in large type

Python dependencies

Other dependencies

Acknowledgement

This project is heavily inspired by

Difference:

  • Alfred 5 and modern python3 support