isometry 23 Posted August 6, 2014 Author Share Posted August 6, 2014 (edited) user.workflow.3ACC632C-5489-45C1-92AA-6FC07DC4B472 yossarian$ python -c 'import alfredssh; print alfredssh.complete("local");' Traceback (most recent call last): File "<string>", line 1, in <module> File "alfredssh.py", line 137, in complete fetch_known_hosts('~/.ssh/known_hosts'), File "alfredssh.py", line 83, in fetch_known_hosts results.update(line.split()[0].split(',')) IndexError: list index out of range ^^ First command - fwiw, my python version when running that command is 2.7.8. The /usr/bin version is 2.7.5 and gives me the same output. OK. It looks like your ~/.ssh/known_hosts contains a line that the workflow couldn't handle: most likely a blank line (with which I reproduced the error). I've updated it to handle blanks at GitHub and Packal: download Thanks for reporting the issue! Bonus fix: it also now ignores encrypted entries in ~/.ssh/known_hosts. Edited August 6, 2014 by isometry Link to post
michaelwills 2 Posted August 11, 2014 Share Posted August 11, 2014 iTerm2 and zsh user, worked out of the box. Thanks much! Link to post
deanishe 1,367 Posted August 13, 2014 Share Posted August 13, 2014 iTerm2 and zsh user, worked out of the box. Thanks much! Same here. I love this workflow so much. Use it all the time, and it's soooo good. Link to post
mAAdhaTTah 0 Posted September 4, 2014 Share Posted September 4, 2014 Any chance of being able to configure this workflow to open in a new tab instead of a new window? Would work better with TotalTerminal: http://totalterminal.binaryage.com/ Link to post
isometry 23 Posted September 5, 2014 Author Share Posted September 5, 2014 Any chance of being able to configure this workflow to open in a new tab instead of a new window? Would work better with TotalTerminal: http://totalterminal.binaryage.com/ Unfortunately, this is in the hands of the ssh protocol handler (i.e. Terminal.app or iTerm.app). Easy to do in iTerm2, I don't have guidance for open-in-tab with Terminal.app. Link to post
mAAdhaTTah 0 Posted September 5, 2014 Share Posted September 5, 2014 Ok, if anyone else is curious, I opened a question at StackExchange: http://apple.stackexchange.com/questions/144258/change-default-ssh-behavior We'll see if that bears any fruit. Link to post
isometry 23 Posted September 6, 2014 Author Share Posted September 6, 2014 Any chance of being able to configure this workflow to open in a new tab instead of a new window? Would work better with TotalTerminal: http://totalterminal.binaryage.com/ Are you aware of iTerm2's Hotkey Window? It provides arguably more powerful functionality to that of TotalTerminal, and iTerm2's default behaviour as ssh protocol handler is "Open in a New Tab". Performance improvements over the past year combined with the addition of Infinite Scrollback leave me little reason to fallback to Terminal.app or hacking SIMBL plugins :-) Link to post
deanishe 1,367 Posted September 8, 2014 Share Posted September 8, 2014 Ok, if anyone else is curious, I opened a question at StackExchange: http://apple.stackexchange.com/questions/144258/change-default-ssh-behavior We'll see if that bears any fruit. Like the SE thread says, your best bet is to create a "wrapper" application in Automator and fiddle with its Info.plist to make the app an ssh:// handler. Then you can use AppleScript in the app to tell whichever terminal app you like to open ssh:// URLs the way you want. This is quite a useful pattern, and I've done something similar with Sublime Text, creating a wrapper app to open .sublime-project files with the subl CLI app. Link to post
rbn.frn 1 Posted September 10, 2014 Share Posted September 10, 2014 This is shockingly sweet. Thank you so much, Isometry! isometry 1 Link to post
kecinzer 0 Posted May 19, 2016 Share Posted May 19, 2016 Very great workflow, that I use every day. But recently I updated to Alfred 3 and this workflow stop working. Is there any easy fix for it? Link to post
deanishe 1,367 Posted May 20, 2016 Share Posted May 20, 2016 It works fine in Alfred 3 for me. Try reinstalling the workflow, perhaps? Link to post
kecinzer 0 Posted May 20, 2016 Share Posted May 20, 2016 I just completly reinstalled Alfred 3 with cleaned settings. Still same behaviour. I have same problem with Evernote workflow. I think this will be Alfred 3 related. Link to post
isometry 23 Posted May 25, 2016 Author Share Posted May 25, 2016 (edited) I've upgraded to Alfred 3 myself now, but haven't encountered the issue reported by @kecinzer. However, I'm tracking the issue here: https://github.com/isometry/alfredworkflows/issues/6 Edited May 25, 2016 by isometry Link to post
okapi 0 Posted June 2, 2016 Share Posted June 2, 2016 Same problem here, solved by following these instructions: http://www.alfredforum.com/topic/8927-cant-seem-to-get-comics-workflow-to-work/?p=44322 Link to post
isometry 23 Posted June 2, 2016 Author Share Posted June 2, 2016 Same problem here, solved by following these instructions: http://www.alfredforum.com/topic/8927-cant-seem-to-get-comics-workflow-to-work/?p=44322 Perfect. Thanks, @okapi! I was thinking I'd like to update to using the Alfred 2.4+ environment variables, but your tracking use of static paths down to a real issue gave me the impetus to actually do so. The workflow has now been updated with enhanced Alfred 3 compatibility and is available on GitHub, here and on Packal. Link to post
Anmol Nagpal 2 Posted April 17, 2019 Share Posted April 17, 2019 Hello, I"m trying to make it will iTerm, which I did use the link in Readme. But when I'm opening via Alfred iTerm start but then it closes itself Link to post
deanishe 1,367 Posted April 17, 2019 Share Posted April 17, 2019 36 minutes ago, Anmol Nagpal said: Hello, I"m trying to make it will iTerm, which I did use the link in Readme. But when I'm opening via Alfred iTerm start but then it closes itself That's what iTerm does when the connection fails. Are you sure the machine is responsive and the connection details are correct? Link to post
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now