Link Search Menu Expand Document
Table of contents
  1. Flow - drdoc
    1. Description
    2. Variables
      1. Used
      2. Created
    3. Termination
    4. Flow
    5. Scripting
      1. Sample Code (AppleScript)
      2. URL
    6. Notes

Flow - drdoc

Description

Search for a page in the Drafts documentation area (https://docs.getdrafts.com), by carrying out a search against the page title. Once matched, the user will be able to navigate to the page in their default web browser by default. There are also options to copy the link to the page, and to copy a Markdown link to the page.

The selection list is managed via an online JSON file.

Variables

Used

No variables are passed into this flow.

Created

The following variables are set-up by the flow.

Variable Description
query The selected page’s arg from the JSON used for the filter.
pagetitle The name of the selected page.
url The URL of the selected page.
mode The action to take with the selected page result. open will trigger the page to be opened, copy will trigger the URL to be copied to the clipboard, and mdcopy will trigger a Markdown link to the page to be copied to the clipboard.
NotificationTitle The title to be shown in any completion notification.
NotificationMessage The message to be shown in any completion notification.

Termination

Flow

drdoc

Scripting

Sample Code (AppleScript)

tell application id "com.runningwithcrayons.Alfred"
	run trigger "drdoc" in workflow "com.thoughtasylum.doctordrafts"
end tell

URL

alfred://runtrigger/com.thoughtasylum.doctordrafts/drdoc/

Notes