From ba60962c8cadff7a760a9566b4e0ac99db678c95 Mon Sep 17 00:00:00 2001 From: Robin Breathe Date: Sat, 9 Sep 2017 16:43:45 +0200 Subject: [PATCH] Switch to direct execution via external script --- .gitignore | 1 + Makefile | 2 ++ alfredssh.py | 4 ++-- info.plist | 18 +++++++++++++----- 4 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 3bdfd76..40fa488 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ ._* *.py[cod] *~ +ssh.alfred3workflow diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6424046 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +all: + zip -j9 --filesync ssh.alfred3workflow *.{plist,png,py} diff --git a/alfredssh.py b/alfredssh.py index 15b2770..dcd39d6 100755 --- a/alfredssh.py +++ b/alfredssh.py @@ -1,7 +1,7 @@ #!/usr/bin/env python2.7 #-*- coding: utf-8 -*- -# ssh.alfredworkflow, v2.0 -# Robin Breathe, 2013-2016 +# ssh.alfredworkflow, v2.2 +# Robin Breathe, 2013-2017 from __future__ import unicode_literals from __future__ import print_function diff --git a/info.plist b/info.plist index 4bb86f7..0d126bd 100644 --- a/info.plist +++ b/info.plist @@ -50,10 +50,14 @@ alfredfiltersresults + alfredfiltersresultsmatchmode + 0 + argumenttrimmode + 0 argumenttype 0 escaping - 4 + 0 keyword ssh queuedelaycustom @@ -67,17 +71,17 @@ runningsubtext Please Wait: matching host… script - /usr/bin/python2.7 -m alfredssh "$@" + scriptargtype 1 scriptfile - + alfredssh.py subtext Open Secure SHell with smart hostname autocompletion title Open SSH type - 0 + 8 withspace @@ -95,6 +99,10 @@ 0 argument 0 + focusedappvariable + + focusedappvariablename + hotkey 41 hotmod @@ -188,7 +196,7 @@ Notes: 1 version - 2.1 + 2.2 webaddress https://github.com/isometry/alfred-ssh