Skip to content

defbyte/alfred-mtg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alfred-mtg

Alfred 2 workflow with tools for searching and browsing magiccards.info

Installation

Download the workflow and open the file with Alfred 2 to install.

To regenerate the Alfred Workflow from source:

git archive --format=zip --output=~/mtg.alfredworkflow HEAD

Usage

This workflow adds four commands to Alfred that interact with magiccards.info. As such, each query allows the same syntax as on that site.

Available commands

Search

mtg search <query>

Opens magiccards.info in your default browser, with a swearch for <query>

Example: mtg search t:sliver t:legend will open up this search page

Page

mtg page <query>

Allows you to choose a card from the results of <query>, opening up its magiccards.info page in the default browser.

Example: mtg page t:legend e:dgm will return these results:

Searching for legendary cards from Dragon's Maze

Upon selecting "Teysa, Envoy of Ghosts", you will be brought to the page for Teysa, Envoy of Ghosts

Spoiler

mtg spoiler <query>

Allows you to choose a card from the results of <query>, copying the spoiler text of the card to your clipboard.

Example: mtg spoiler sorin will return these results:

Searching for cards with "Sorin" in the name

Upon selecting "Sorin, Lord of Innistead", the following text will be copied to your clipboard:

Sorin, Lord of Innistrad (2WB)
Planeswalker - Sorin
+1: Put a 1/1 black Vampire creature token with lifelink onto the battlefield.
-2: You get an emblem with "Creatures you control get +1/+0."
-6: Destroy up to three target creatures and/or other planeswalkers. Return each card put into a graveyard this way to the battlefield under your control.
Loyalty: 3
http://magiccards.info/ddk/en/1.html

Image

mtg image <query>

Allows you to choose a card from the results of <query>, copying the URL to an image of the card to your clipboard. This is useful for pasting to IRC, Campfire, or other chat programs.

Example: mtg image t:enchant squirrel will return these results:

Searching for enchantments with "squirrel" in the name

Upon selecting "Squirrel Mob", the following text will be copied to your clipboard:

http://magiccards.info/scans/en/od/274.jpg

Credits

License

WTFPL

About

Alfred workflow with tools for searching and browsing magiccards.info

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages