Alfred workflow for finding a Cacher snippet.
Switch branches/tags
Nothing to show
Clone or download

README.md

alfred-cacher

Alfred Workflow for finding a snippet from your Cacher library.

Demo

Prerequisites

Installation

Step 1

Run the following shell command from a Terminal window.

npm install --global alfred-cacher

Step 2

  1. Open Cacher and click on the "Apps" icon in the top bar.
  2. Note the API Key and Token in the footer.

Get API Key and Token

Step 3

  1. Open Alfred Preferences.
  2. Click on the "Workflows" tab and find Cacher.
  3. Click on the "Configure workflow and variables" button.
  4. Add the following under Workflow Environment Variables:
    • CACHER_API_KEY: [API Key from Step 2]
    • CACHER_API_TOKEN: [API Token from Step 2]
  5. Click "Save"

Set Environment Variables

Usage

In Alfred, type snip [keywords] and wait for results to return. Select a snippet and press Enter to copy its contents to the clipboard.

Libraries Used

  • alfy - Create Alfred Workflows using Node
  • Fuse.js - Lightweight fuzzy-search

Author / License

Released under the MIT License by Rui Jiang of Cacher.