diff --git a/gist.py b/gist.py index 03f4cda..1f245e5 100644 --- a/gist.py +++ b/gist.py @@ -117,7 +117,7 @@ def main(wf): if lang == "" or f["language"] == lang: wf.add_item(gist["description"], filename + " | " + f["content"].replace("\n"," "), - arg=f["content"], + arg=gist["html_url"] + "@@@gist@@@" + f["content"], copytext=gist["url"], valid = True, icon="icons/" + str(f["language"]) + ".png") diff --git a/info.plist b/info.plist index 6a7ee70..f3b0f15 100644 --- a/info.plist +++ b/info.plist @@ -8,6 +8,19 @@ Tools connections + 0AFA5D53-1CE7-4E4F-81A3-5193A179FD1E + + + destinationuid + EE8E5A2E-9AB1-443B-8A89-A23688389B7A + modifiers + 0 + modifiersubtext + + vitoclose + + + 2EFDCC81-C843-4C86-BA24-21A210ED0594 @@ -17,35 +30,58 @@ 0 modifiersubtext + vitoclose + 78B3D890-4494-4AA6-A8C0-476140DBEF0C destinationuid - B5BB7EA6-BF63-404E-99C5-3249101CD8D0 + D8FE108B-E884-4963-8533-3A088539840C modifiers 0 modifiersubtext + vitoclose + destinationuid - C9524867-33F5-4787-865B-81C66BD28334 + EDC85484-8D6A-4179-B251-20B622C19852 modifiers - 0 + 1048576 modifiersubtext - + Open this gist URL in browser + vitoclose + destinationuid - EE8E5A2E-9AB1-443B-8A89-A23688389B7A + 0AFA5D53-1CE7-4E4F-81A3-5193A179FD1E modifiers 262144 modifiersubtext Show large type of snippet + vitoclose + + + + B5BB7EA6-BF63-404E-99C5-3249101CD8D0 + + + destinationuid + C9524867-33F5-4787-865B-81C66BD28334 + modifiers + 0 + modifiersubtext + + vitoclose + + D319CE9E-0DC7-4DD6-9274-3A2B5A5B1C9D + D8D3769A-EA94-498E-9729-3DF921080455 @@ -55,6 +91,34 @@ 0 modifiersubtext + vitoclose + + + + D8FE108B-E884-4963-8533-3A088539840C + + + destinationuid + B5BB7EA6-BF63-404E-99C5-3249101CD8D0 + modifiers + 0 + modifiersubtext + + vitoclose + + + + EDC85484-8D6A-4179-B251-20B622C19852 + + + destinationuid + D319CE9E-0DC7-4DD6-9274-3A2B5A5B1C9D + modifiers + 0 + modifiersubtext + + vitoclose + @@ -75,17 +139,21 @@ clipboardtext {query} + transient + type alfred.workflow.output.clipboard uid B5BB7EA6-BF63-404E-99C5-3249101CD8D0 version - 0 + 2 config + alfredfiltersresults + argumenttype 1 escaping @@ -100,8 +168,16 @@ 0 queuemode 1 + runningsubtext + script python gist.py "{query}" + scriptargtype + 0 + scriptfile + + subtext + title Search code snippets type @@ -114,7 +190,111 @@ uid 78B3D890-4494-4AA6-A8C0-476140DBEF0C version - 0 + 2 + + + config + + lastpathcomponent + + onlyshowifquerypopulated + + removeextension + + text + {query} + title + Copied + + type + alfred.workflow.output.notification + uid + C9524867-33F5-4787-865B-81C66BD28334 + version + 1 + + + config + + matchmode + 1 + matchstring + [\s\S]*(@@@gist@@@) + replacestring + + + type + alfred.workflow.utility.replace + uid + D8FE108B-E884-4963-8533-3A088539840C + version + 1 + + + config + + browser + + spaces + + url + {query} + utf8 + + + type + alfred.workflow.action.openurl + uid + D319CE9E-0DC7-4DD6-9274-3A2B5A5B1C9D + version + 1 + + + config + + matchmode + 1 + matchstring + (@@@gist@@@)[\s\S]* + replacestring + + + type + alfred.workflow.utility.replace + uid + EDC85484-8D6A-4179-B251-20B622C19852 + version + 1 + + + config + + largetypetext + {query} + + type + alfred.workflow.output.largetype + uid + EE8E5A2E-9AB1-443B-8A89-A23688389B7A + version + 2 + + + config + + matchmode + 1 + matchstring + [\s\S]*(@@@gist@@@) + replacestring + + + type + alfred.workflow.utility.replace + uid + 0AFA5D53-1CE7-4E4F-81A3-5193A179FD1E + version + 1 config @@ -125,6 +305,10 @@ 116 script python set_info.py "{query}" + scriptargtype + 0 + scriptfile + type 0 @@ -133,11 +317,13 @@ uid 2EFDCC81-C843-4C86-BA24-21A210ED0594 version - 0 + 2 config + alfredfiltersresults + argumenttype 1 escaping @@ -152,8 +338,16 @@ 0 queuemode 1 + runningsubtext + script python gg_set.py "{query}" + scriptargtype + 0 + scriptfile + + subtext + title Set username / personal access token type @@ -166,7 +360,7 @@ uid D8D3769A-EA94-498E-9729-3DF921080455 version - 0 + 2 config @@ -175,45 +369,10 @@ onlyshowifquerypopulated - output - 0 removeextension - sticky - text - {query} - title - Copied - - type - alfred.workflow.output.notification - uid - C9524867-33F5-4787-865B-81C66BD28334 - version - 0 - - - type - alfred.workflow.output.largetype - uid - EE8E5A2E-9AB1-443B-8A89-A23688389B7A - version - 0 - - - config - - lastpathcomponent - - onlyshowifquerypopulated - - output - 0 - removeextension - - sticky - + title Set username/token @@ -222,47 +381,95 @@ uid 7BEB5D7A-EBF1-4494-8126-2C42B934C2AA version - 0 + 1 readme uidata + 0AFA5D53-1CE7-4E4F-81A3-5193A179FD1E + + note + get gist + xpos + 360 + ypos + 340 + 2EFDCC81-C843-4C86-BA24-21A210ED0594 + xpos + 320 ypos - 130 + 440 78B3D890-4494-4AA6-A8C0-476140DBEF0C + xpos + 70 ypos - 10 + 70 7BEB5D7A-EBF1-4494-8126-2C42B934C2AA + xpos + 560 ypos - 380 + 440 B5BB7EA6-BF63-404E-99C5-3249101CD8D0 + xpos + 560 ypos - 10 + 70 C9524867-33F5-4787-865B-81C66BD28334 + xpos + 700 + ypos + 70 + + D319CE9E-0DC7-4DD6-9274-3A2B5A5B1C9D + + xpos + 560 ypos - 130 + 190 D8D3769A-EA94-498E-9729-3DF921080455 + xpos + 70 + ypos + 440 + + D8FE108B-E884-4963-8533-3A088539840C + + note + get gist + xpos + 360 + ypos + 100 + + EDC85484-8D6A-4179-B251-20B622C19852 + + note + get URL + xpos + 360 ypos - 130 + 220 EE8E5A2E-9AB1-443B-8A89-A23688389B7A + xpos + 560 ypos - 260 + 310 webaddress