Alfred 5 StackExchange Search
Installation
- Clone this repository.
- 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.
- Invoke
stack
script filter, select one site from list, then input the query for that site; - 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, namedso
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 Findercommand + c
: copy thesite_id
(useful when creating shortcut script filters)command + l
: show thesite_id
in large type
- any script filter connected to the
Open URL
block:- query format:
query words [#tag1 #tag2] [// local search words]
, wherequery 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 titlecommand + l
: show the question title in large type
- query format:
Python dependencies
Other dependencies
Acknowledgement
This project is heavily inspired by
Difference:
- Alfred 5 and modern python3 support