diff --git a/PluginDirectories/1/gyazo-search.bundle/README.markdown b/PluginDirectories/1/gyazo-search.bundle/README.markdown new file mode 100644 index 00000000..25eac684 --- /dev/null +++ b/PluginDirectories/1/gyazo-search.bundle/README.markdown @@ -0,0 +1,12 @@ +# Gyazo Search in Spotlight plugin by Flashlight + +![Screenshot](https://i.gyazo.com/9a8ffcd84835c1630088579565fb5150.png) + +## keyword + +- `gyazo ` +- `gy ` + +### :warning: Note about login + +if it shows login page in webview, please login to Gyazo.com with your Safari. diff --git a/PluginDirectories/1/gyazo-search.bundle/Screenshot.png b/PluginDirectories/1/gyazo-search.bundle/Screenshot.png new file mode 100644 index 00000000..95ca26cc Binary files /dev/null and b/PluginDirectories/1/gyazo-search.bundle/Screenshot.png differ diff --git a/PluginDirectories/1/gyazo-search.bundle/examples.txt b/PluginDirectories/1/gyazo-search.bundle/examples.txt new file mode 100644 index 00000000..69e2b822 --- /dev/null +++ b/PluginDirectories/1/gyazo-search.bundle/examples.txt @@ -0,0 +1,2 @@ +gyazo ~keyword(kyoto) +gy ~keyword(lgtm) diff --git a/PluginDirectories/1/gyazo-search.bundle/icon.png b/PluginDirectories/1/gyazo-search.bundle/icon.png new file mode 100644 index 00000000..786e53fd Binary files /dev/null and b/PluginDirectories/1/gyazo-search.bundle/icon.png differ diff --git a/PluginDirectories/1/gyazo-search.bundle/info.json b/PluginDirectories/1/gyazo-search.bundle/info.json new file mode 100644 index 00000000..f5c51918 --- /dev/null +++ b/PluginDirectories/1/gyazo-search.bundle/info.json @@ -0,0 +1,12 @@ +{ + "categories" : [ + "Utilities" + ], + "displayName" : "Gyazo Search", + "name" : "gyazo-search", + "description" : "", + "examples" : [ + "gyazo kyoto", + "gy lgtm" + ] +} diff --git a/PluginDirectories/1/gyazo-search.bundle/ninja.png b/PluginDirectories/1/gyazo-search.bundle/ninja.png new file mode 100644 index 00000000..aad4091a Binary files /dev/null and b/PluginDirectories/1/gyazo-search.bundle/ninja.png differ diff --git a/PluginDirectories/1/gyazo-search.bundle/plugin.py b/PluginDirectories/1/gyazo-search.bundle/plugin.py new file mode 100644 index 00000000..796f48a7 --- /dev/null +++ b/PluginDirectories/1/gyazo-search.bundle/plugin.py @@ -0,0 +1,16 @@ +def results(fields, original_query): + keyword = fields['~keyword'] + html = ( + open("show.html").read().decode('utf-8') + .replace("", keyword) + ) + return { + "title": "Gyazo Seach '{0}'".format(keyword.encode('utf-8')), + "run_args": [keyword.encode('utf-8')], + "html": html, + "webview_links_open_in_browser": True + } + +def run(message): + import os, pipes + os.system('open "https://gyazo.com/search/{0}"'.format(message.encode('utf8'))) diff --git a/PluginDirectories/1/gyazo-search.bundle/show.html b/PluginDirectories/1/gyazo-search.bundle/show.html new file mode 100644 index 00000000..12cfecfa --- /dev/null +++ b/PluginDirectories/1/gyazo-search.bundle/show.html @@ -0,0 +1,14 @@ + + + + + +

Searching

+ + +