Jump to content


Photo

Search Safari and Chrome Tabs [Updated Feb 8, 2014]


  • Please log in to reply
84 replies to this topic

#1 Clinton Strong

Clinton Strong

    Member

  • Member
  • PipPip
  • 114 posts

Posted 18 January 2013 - 11:12 AM

Search your tabs in Safari, Chrome, Chromium, Chrome Canary, and Webkit.

Screen%20Shot%202013-01-19%20at%2012.42.

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 by Clinton Strong, 09 February 2014 - 05:16 AM.

  • Pedro Lobo, jarhead, drking and 11 others like this

#2 spacecadet9

spacecadet9

    Member

  • Member
  • PipPip
  • 58 posts

Posted 18 January 2013 - 11:43 AM

Fantastic, I've dreaming of doing this for ages...! 



#3 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 18 January 2013 - 11:46 AM

Very nice workflow!



#4 Jono

Jono

    Member

  • Member
  • PipPip
  • 156 posts
  • LocationUK

Posted 18 January 2013 - 01:53 PM

Very useful, thanks!

 


#5 jarhead

jarhead

    Member

  • Member
  • PipPip
  • 46 posts
  • LocationNashville, TN

Posted 18 January 2013 - 02:48 PM

Nice! Now I can quickly find my various Gmail accounts amongst the other tabs.



#6 twinpeaks

twinpeaks

    Member

  • Member
  • PipPip
  • 173 posts

Posted 18 January 2013 - 07:24 PM

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.


 


#7 ithinkimalion

ithinkimalion

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 18 January 2013 - 07:28 PM

This is ridiculously useful. Good work.



#8 loris

loris

    Member

  • Member
  • PipPip
  • 22 posts

Posted 18 January 2013 - 07:37 PM

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.



#9 epogue

epogue

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 18 January 2013 - 08:10 PM

This is awesome! Thank you.



#10 OliverJAsh

OliverJAsh

    Member

  • Member
  • PipPip
  • 40 posts

Posted 18 January 2013 - 11:28 PM

Can you add support for Chrome Canary?



#11 Clinton Strong

Clinton Strong

    Member

  • Member
  • PipPip
  • 114 posts

Posted 19 January 2013 - 02:27 PM

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 likes this

#12 OliverJAsh

OliverJAsh

    Member

  • Member
  • PipPip
  • 40 posts

Posted 20 January 2013 - 10:07 AM

Thank you very much!



#13 Pedro Lobo

Pedro Lobo

    Member

  • Member
  • PipPip
  • 171 posts
  • LocationPortugal

Posted 20 January 2013 - 07:49 PM

Awesome workflow mate! In my arsenal as of now ;)



#14 Clinton Strong

Clinton Strong

    Member

  • Member
  • PipPip
  • 114 posts

Posted 22 February 2013 - 09:10 AM

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.


  • drking and mccamel like this

#15 mccamel

mccamel

    Member

  • Member
  • PipPip
  • 26 posts

Posted 27 February 2013 - 10:55 PM

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!



#16 R4z3r

R4z3r

    Member

  • Member
  • PipPip
  • 47 posts
  • LocationVirginia

Posted 14 March 2013 - 08:09 PM

Is there a way to change the Hotkey trigger to a keyword tigger (inputs >keyword)?



#17 Clinton Strong

Clinton Strong

    Member

  • Member
  • PipPip
  • 114 posts

Posted 14 March 2013 - 08:14 PM

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".



#18 R4z3r

R4z3r

    Member

  • Member
  • PipPip
  • 47 posts
  • LocationVirginia

Posted 14 March 2013 - 08:45 PM

Sorry, I didn't understand it. Thank you. You were right.



#19 Jono

Jono

    Member

  • Member
  • PipPip
  • 156 posts
  • LocationUK

Posted 26 March 2013 - 09:32 AM

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 :)



#20 Clinton Strong

Clinton Strong

    Member

  • Member
  • PipPip
  • 114 posts

Posted 26 March 2013 - 09:55 AM

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 likes this


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users