Skip to content

dkarter/alfred-magic-link

Repository files navigation

Alfred Magic Link Workflow

A magical workflow for copying a beautifully formatted Markdown link based on a single search query! It's like "I'm feeling lucky" feature in your search engine but for Markdown. 🪄

Demo

CleanShot.2022-11-08.at.00.12.52.mp4

Works in any app!

CleanShot.2022-11-08.at.00.28.27.mp4

Usage

Type ml <query> for example to get the page for ASDF Version Manager: ml asdf vm

OR

Use the hotkey + [ and type a query

Then either:

  • Press Enter to paste the markdown formatted link (+ copy it to clipboard)
  • Hold + Enter to copy a Markdown formatted link
  • Hold + Enter to copy the URL (no markdown)
  • Hold + + Enter to copy the URL (no markdown)
  • Hold + Enter to open the URL

Prerequisites

  • Ruby 💎
  • Alfred with PowerPack 🎩

Installation

Download the latest release from GitHub and open it.

Notes

This workflow is powered by DuckDuckGo.

If you overuse it, DuckDuckGo may temporarily flag you as a bot, and the workflow will return no result. For most users and use cases that will not be an issue, but I encountered this issue when I was developing and doing some heavy testing.

If you want to use this feature in your browser add a ! to any DuckDuckGo search query apple !.

Release Instructions

  1. Update the version in the "About This Workflow" section
  2. Commit everything
  3. Create a tag git tag v1.x.x
  4. Push commits and tag
  5. Workflow will be built and released automatically