-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use info.json, not info.plist, for plugins. add plugin usage example …
…field
- Loading branch information
1 parent
8c9a270
commit 8aff87a
Showing
29 changed files
with
106 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"comment": "This index is automatically generated by generate_index.py", "plugins": [{"CFBundleDisplayName": "Pig latin <message>", "zip_url": "piglatin.zip", "Description": "Translates your message into Pig Latin.", "name": "piglatin"}, {"CFBundleDisplayName": "Say <message>", "zip_url": "say.zip", "Description": "Speaks your message out-loud.", "name": "say"}, {"CFBundleDisplayName": "Terminal", "zip_url": "terminal.zip", "Description": "Run a terminal command.", "IconPath": "/Applications/Utilities/Terminal.app/Contents/Resources/Terminal.icns", "name": "terminal"}, {"CFBundleDisplayName": "Weather <location>", "zip_url": "weather.zip", "Description": "Today's weather.", "name": "weather"}, {"CFBundleDisplayName": "Ask Wolfram Alpha <a question>", "zip_url": "wolfram-alpha.zip", "Description": "Search Wolfram|Alpha.", "name": "wolfram-alpha"}]} | ||
{"comment": "This index is automatically generated by generate_index.py", "plugins": [{"examples": ["translate hello world into pig latin", "pig latin hello world"], "zip_url": "piglatin.zip", "displayName": "Pig Latin", "name": "piglatin", "description": "Translate a message into Pig Latin"}, {"examples": ["say good morning"], "zip_url": "say.zip", "displayName": "Say", "name": "say", "description": "Speak a message out loud."}, {"examples": ["rm -f *.py", "git push", "$ ping google.com"], "zip_url": "terminal.zip", "displayName": "Terminal", "name": "terminal", "description": "Run Terminal commands. If Finder is open, commands are run in the current folder."}, {"examples": ["weather brooklyn", "how's the weather in houston?"], "zip_url": "weather.zip", "displayName": "Weather", "name": "weather", "description": "View the forecast in Spotlight."}, {"zip_url": "websearch.zip", "displayName": "Web Search", "name": "websearch", "examples": ["google Apple stock", "g Apple stock", "search duck duck go for Flashlight", "ddg Flashlight", "image search for rubber ducks"]}, {"zip_url": "wolfram-alpha.zip", "displayName": "Wolfram|Alpha Search", "name": "wolfram-alpha", "examples": ["ask wolfram alpha 1 + 1", "wa first 10 prime numbers", "population of india"]}]} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "piglatin", | ||
"displayName": "Pig Latin", | ||
"description": "Translate a message into Pig Latin", | ||
"examples": ["translate hello world into pig latin", "pig latin hello world"] | ||
} |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "say", | ||
"displayName": "Say", | ||
"description": "Speak a message out loud.", | ||
"examples": ["say good morning"] | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "terminal", | ||
"displayName": "Terminal", | ||
"description": "Run Terminal commands. If Finder is open, commands are run in the current folder.", | ||
"examples": ["rm -f *.py", "git push", "$ ping google.com"] | ||
} |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "weather", | ||
"displayName": "Weather", | ||
"description": "View the forecast in Spotlight.", | ||
"examples": ["weather brooklyn", "how's the weather in houston?"] | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
duck duck go search ~duckduckgoquery(query here) | ||
search duck duck go for ~duckduckgoquery(query here) | ||
ddg ~duckduckgoquery(query here) | ||
|
||
google search ~googlequery(query here) | ||
search the web for ~googlequery(query here) | ||
g ~googlequery(query here) | ||
|
||
image search for ~googleimagequery(query here) | ||
show me images of ~googleimagequery(query here) | ||
show me a picture of ~googleimagequery(query here) | ||
gi ~googleimagequery(query here) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "websearch", | ||
"displayName": "Web Search", | ||
"examples": ["google Apple stock", "g Apple stock", "search duck duck go for Flashlight", "ddg Flashlight", "image search for rubber ducks"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import urllib | ||
|
||
def results(parsed, original_query): | ||
search_specs = [ | ||
["Google", "~googlequery", "https://www.google.com/search?q="], | ||
["Duck Duck Go", "~duckduckgoquery", "https://duckduckgo.com/?q="], | ||
["Google Images", "~googleimagequery", "https://www.google.com/search?tbm=isch&q="] | ||
] | ||
for name, key, url in search_specs: | ||
if key in parsed: | ||
return { | ||
"title": "Search {0} for '{1}'".format(name, parsed[key]), | ||
"run_args": [url + urllib.quote_plus(parsed[key])] | ||
} | ||
|
||
def run(url): | ||
import os | ||
os.system('open "{0}"'.format(url)) |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "wolfram-alpha", | ||
"displayName": "Wolfram|Alpha Search", | ||
"examples": ["ask wolfram alpha 1 + 1", "wa first 10 prime numbers", "population of india"] | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters