/alfred-web-searches

Alfred workflow to search through any website (easily extendable list)

Primary LanguageGoMIT LicenseMIT

Alfred Web Searches

Alfred workflow to search through any website (easily extendable list)

img

This workflow similar to DuckDuckGo Bangs allows you to fuzzy search through a selection of websites that you can add and contribute to.

You simply search for the website you want to scope your search too, press enter and make your search.

Some results have a prefix to signify the scope of the search. For example results prefixed with r: will search through Reddit subreddits. Here is the full list of prefixes and their descriptions.

Prefix Description
r: Search subreddits on Reddit
d: Search documentation websites
g: Search GitHub
s: Search stack exchange sites
f: Search forums
t: Search Google Translate

Each prefix also has a corresponding icon for visual feedback of prefix meaning.

And since the workflow allows for fuzzy searching, you can even make searches like that:

img

And they will match.

You can also attach a hotkey that will take the selected text and then will let you search for that text on any of the websites.

Install

Download workflow from GitHub releases.

See here for instructions on fixing permissions in macOS refusing to run Go binary.

Setup

The workflow is written in Go and uses AwGo library for all Alfred related things.

It uses modd and Alfred command to ease its development.

Run

  1. Run alfred link (makes symbolic link of workflow directory)
  2. Run modd (starts a process that automatically builds the workflow with alfred build on any changes you make to .go files, this builds and places a binary inside workflow directory.)
  3. Make changes to code or modify Alfred objects to do what you want! Open debugger in Alfred or run the workflow with workflow:log passed in as argument to see the logs Alfred produces.

Contribute

Always open to useful ideas or fixes in form of issues or PRs.

Can open new issue (search existing issues first) or start discussion.

It's okay to submit draft PR as you can get help along the way to make it merge ready.

Join Discord for more indepth discussions on this repo and others.

🖤

Support on GitHub or look into other projects.

Discord X nikiv.dev