ClintonStrong Posted January 18, 2013 Share Posted January 18, 2013 (edited) Search your tabs in Safari, Chrome, Chromium, Chrome Canary, and Webkit.When you action a result, it'll bring your browser to the front and switch to the selected tab. You can also close a tab by holding down alt when actioning a result.Download from Packal Updated Feb 8, 2014: Made it more resilient to an AppleScript error that could cause a blank output. Update #2, Feb 1, 2014: Fixed regression with searching. You should be able to search anchored by words (and capital letters in CamelCase words) again. Updated Feb 1, 2014: Rewrote the workflow. It now supports copying the URL of a tab, viewing a tab in QuickLook, and closing a tab with a modifier key. Updated Oct 11, 2013: Fixed issue with improper string encoding in Mavericks and Ruby 2.0 breaking the workflow. Updated Oct 9, 2013: Updated for Mavericks and Ruby 2.0.0. Removed thumbnails for now (beta versions of Safari don't seem to generate them anymore). Fixed some issues where the proper window wouldn't always focus correctly. Updated May 4, 2013: Experimental support for webpage thumbnails. Prevent launching browsers when WebKit is open.Updated Mar 26, 2013: (Hopefully) prevent launching browsers when it's not supposed to, and fix an issue with it not detecting WebKit. Edited February 9, 2014 by Clinton Strong cands, hpiwzqda, Benzi and 14 others 17 Link to comment
spacecadet9 Posted January 18, 2013 Share Posted January 18, 2013 Fantastic, I've dreaming of doing this for ages...! Link to comment
jarhead Posted January 18, 2013 Share Posted January 18, 2013 Nice! Now I can quickly find my various Gmail accounts amongst the other tabs. Link to comment
twinpeaks Posted January 18, 2013 Share Posted January 18, 2013 Well done, this is great, works like a charm too. At first I was having problems getting it to pick-up tabs, but after I removed coreutils from my path it started working no problem. Thanks for sharing and uploading this as well as "View Recent Folders" to AlfTP. Great workflows. Link to comment
ithinkimalion Posted January 18, 2013 Share Posted January 18, 2013 This is ridiculously useful. Good work. Link to comment
loris Posted January 18, 2013 Share Posted January 18, 2013 Very nice. In case you guys use Chrome Canary (or Chromium) like I do, just search and replace "Google Chrome" with "Google Chrome Canary" in the workflow ruby files and you're good to go. Link to comment
epogue Posted January 18, 2013 Share Posted January 18, 2013 This is awesome! Thank you. Link to comment
OliverJAsh Posted January 18, 2013 Share Posted January 18, 2013 Can you add support for Chrome Canary? Link to comment
ClintonStrong Posted January 19, 2013 Author Share Posted January 19, 2013 Can you add support for Chrome Canary? I plan to add support for Canary, Chromium, and Webkit (I've already coded most of it). Unfortunately I'm having some issues with my system right now, but I'll try to get it updated as soon as I can. Edit: Done. OliverJAsh 1 Link to comment
OliverJAsh Posted January 20, 2013 Share Posted January 20, 2013 Thank you very much! Link to comment
palobo Posted January 20, 2013 Share Posted January 20, 2013 Awesome workflow mate! In my arsenal as of now Link to comment
ClintonStrong Posted February 22, 2013 Author Share Posted February 22, 2013 Updated. You can download it here or in my original post. Fixed an issue with tabs not showing up for Safari. Improved performance. You may still get some slowdown if you're running multiple browsers at the same time, but that'll be fixed in the next update. I'm working on a rewrite to further improve performance and add a few new features. It's not quite ready yet, but I'll try to get it out soon. mccamel and drking 2 Link to comment
mccamel Posted February 27, 2013 Share Posted February 27, 2013 Love this workflow. One thing that I'd really like to see is the ability to copy the URL of a tab-- I hope something like this makes it into your new version! Link to comment
R4z3r Posted March 14, 2013 Share Posted March 14, 2013 Is there a way to change the Hotkey trigger to a keyword tigger (inputs >keyword)? Link to comment
ClintonStrong Posted March 14, 2013 Author Share Posted March 14, 2013 Is there a way to change the Hotkey trigger to a keyword tigger (inputs >keyword)? It should be wired up to support both a keyword and a hotkey. The default keyword is "tabs". Link to comment
R4z3r Posted March 14, 2013 Share Posted March 14, 2013 Sorry, I didn't understand it. Thank you. You were right. Link to comment
Jono Posted March 26, 2013 Share Posted March 26, 2013 Is there a way for this to not open Chrome when running the workflow? I mainly use Safari and only occasionally use Chrome, so have it closed most of the time. Or if that's not possible just a workflow to search Safari tabs, without Chrome Link to comment
ClintonStrong Posted March 26, 2013 Author Share Posted March 26, 2013 Is there a way for this to not open Chrome when running the workflow? I mainly use Safari and only occasionally use Chrome, so have it closed most of the time. Or if that's not possible just a workflow to search Safari tabs, without Chrome Hm, it shouldn't be opening a browser if it isn't already running. It just looks for "Google Chrome.app" in the process list (`ps ax`), but maybe there's a background process running that it's picking up. I tried making the search a bit more specific to make sure the browser itself is running, and not just a helper app. Let me know if that fixes it. (Updated download link in the original post.) Jono 1 Link to comment
Tyler Eich Posted May 4, 2013 Share Posted May 4, 2013 Hm, it shouldn't be opening a browser if it isn't already running. It just looks for "Google Chrome.app" in the process list (`ps ax`), but maybe there's a background process running that it's picking up. I tried making the search a bit more specific to make sure the browser itself is running, and not just a helper app. Let me know if that fixes it. (Updated download link in the original post.) I think I stumbled upon a bug in your search script. If WebKit is open, every supported browser is opened when firing the script. I don't know Ruby too well, but it appears that the '||' [or] operand on line 69 is the culprit. Works everywhere else! Thanks Link to comment
ClintonStrong Posted May 4, 2013 Author Share Posted May 4, 2013 (edited) I think I stumbled upon a bug in your search script. If WebKit is open, every supported browser is opened when firing the script. I don't know Ruby too well, but it appears that the '||' [or] operand on line 69 is the culprit. Works everywhere else! Thanks Thanks for pointing that out. Just published a new version (link in the original post), so let me know if you have any problems. Oh, and I threw in webpage thumbnails for Safari users. It doesn't seem to work with pages served over SSL (HTTPS), but I tried to add in some placeholder images to help with that. It's still an experimental feature, so let me know if you have any feedback. Edited May 4, 2013 by Clinton Strong Link to comment
yoose Posted May 5, 2013 Share Posted May 5, 2013 thank you for this, i have been looking for something like this and cant believe i just found it. Link to comment
Tyler Eich Posted May 5, 2013 Share Posted May 5, 2013 Thanks for pointing that out. Just published a new version (link in the original post), so let me know if you have any problems. Oh, and I threw in webpage thumbnails for Safari users. It doesn't seem to work with pages served over SSL (HTTPS), but I tried to add in some placeholder images to help with that. It's still an experimental feature, so let me know if you have any feedback. WebKit bug seems to be fixed (many thanks ). I am not a huge fan of the previews; the icons look cleaner. Maybe it should be optional? At least until Alfred's feedback output system matures. Link to comment
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