DEV Community

Cover image for Dash + Alfred - instantly search offline documentation sets for 200+ APIs, 100+ cheat sheets, and more!

Dash + Alfred - instantly search offline documentation sets for 200+ APIs, 100+ cheat sheets, and more!

I am a big fan of productivity tools, which make my life easier. Anything that gets me where I want to go with just a few clicks or shortcuts is at least worth a test phase. So it's no surprise that I'm a big fan of Alfred - the Spotlight alternative for macOS. In this article, I don't want to go into the advantages and why the Alfred Powerpack is worth every penny, but rather jump straight into today's topic.

Who hasn't experienced that feeling of forgetting the syntax for a certain task in a programming language? Now you are faced with the problem of finding the answer. What do you do, like many others? Sure, you google it. A few clicks in the results later, you are hopefully at your destination and have found the famous green tick on StackOverflow. But what if I told you that there is an alternative that works even offline?

Let me introduce you: Dash - the "Indispensable masterpiece for developers." (Stefan FΓΌrst, Media Atelier Maker of GrandTotal).

Dash gives you 200+ API documentations instantly with offline access! Together with the matching Alfred workflow, any search in the Dash library is just a few keystrokes away! I'll show you how in just a few steps.

Setup

First of all, you need to install Alfred (macOS only) and Dash. And for the whole thing to work, you also need the Alfred Powerpack. If you're not convinced right away, install the free version of Alfred and get warmed up with the program first. You'll see that you'll want the Powerpack in the end.

Once you've installed the two apps, all you need is the workflow to go with them. It's very simple. Open Dash and go to Preferences > Integration > Alfred and follow the instructions.

Usage

Open Alfred and type in "javascript array" for example.

Now that you have everything installed, it's time to see the combination in action. Open Alfred and type in javascript array for example. The Dash Workflow will immediately suggest the appropriate API documentation for the app. Select one and Dash will open the page in a separate window.

Now you can read the documentation at your leisure and clarify your open questions.

Dash Window with Javascript array method open

You got questions?

Do you have any questions about this productivity tip? Then write me a comment or contact me on Twitter. I look forward to your feedback.

Top comments (2)

Collapse
 
codycodes profile image
Cody Antonio Gagnon

I love Dash + Alfred too! A couple of tips based on my usage over time:

  1. The search profiles exposed to Alfred are defined in Dash. I use a shorthand to make things speedier (e.g. js instead of javascript). You can also use the "default" search profile by just typing "dash " in Alfred!
  2. Each time a modification is made to search profiles, you'll need to "reinstall" the integration to Alfred for the profile to be added. It didn't use to be this way but I started noticing this behavior sometime back. A simple thing to do but easy to not realize if you haven't done it before.
Collapse
 
natterstefan profile image
Stefan Natter πŸ‡¦πŸ‡ΉπŸ‘¨πŸ»β€πŸ’»

Hi Cody,

thanks for your feedback. I was not aware of these customization options and that you need to reinstall the integration. Thanks for sharing this with me. Looks like I am used to the default search profiles. :D