Search and Hyperlink Screencast

Here is a short screencast showing off the nifty bundle item selector which allows you to search bundle items.

It also shows how to initiate web searches from TextMate, easily make your text link to the result of these web searches, and shorten Amazon URLs.

Kudos to Haris for coming up with the Feeling Lucky command shown last in the screencast.

See all TextMate screencasts.

12 Comments

  1. 26 Jul 2006 | # Haris Skiadas wrote…

    Very nice! I had actually never used the searches yet, but I sure will now!

    Btw, what I’d really like to have is a command that searches in Wikipedia for the selection/current word, and returns the link to the right page, instead of the search page. Not sure how to achieve that though. I tried modifying my Feeling Lucky command, but Wikipedia did not seem to like that very much.

    Once again a great screencast.

  2. 26 Jul 2006 | # Paul McCann wrote…

    Aah, yet another case of “that looks cool, but doesn’t work for me at work because of the presence of an authenticating proxy server”. Fortunately my ruby-foo is getting marginally better, and I just changed the “Feeling lucky” command so that instead of

    response = Net::HTTP.get_response…..

    I have instead

    response = Net::HTTP::Proxy(”myproxy.address”,8080,”user”,”pass”).get_response…

    Everything worked beautifully after that.

    Cheers, Paul

  3. 26 Jul 2006 | # simmel wrote…

    I thought you said seaches in Bundle were an longtime plan when I asked you to do it? ; )

    I guess it just was too valuable to not to and I love it! Now I get even more efficient.

  4. 28 Jul 2006 | # hardcoded wrote…

    Another screencast where I was like “Bah, I don’t need this” before seeing it, and I’m now like “Man, this is cool!” after :)

    Yay TextMate.

  5. 29 Jul 2006 | # nuvi wrote…

    Hi,a little offtopic.I think that someone uses your app icon without permission:)) Take look here on the little media apple style icon “Smarter Digital Entertainment” http://sys.us.shuttle.com/AMD_Live.aspx

  6. 02 Aug 2006 | # Fred wrote…

    I tried changing the I’m feeling lucky to use wikipedia using this

    !/usr/bin/env ruby

    word =STDIN.read require ‘net/http’ require ENV['TMSUPPORTPATH']+”/lib/progress.rb” TextMate.callwithprogress(:title => “Feeling Lucky”, :message => “Asking Google for the link”) { response = Net::HTTP.get_response(URI.parse(URI.escape(”http://en.wikipedia.org/wiki/Special:Search?search=#{word}&go=Go”))) print “#{word}” }

    however, this does not work, it returns nothing and inserts a blank link

  7. 02 Aug 2006 | # Mark wrote…

    Fred, maybe a better approach is to use the wiki command. Have a look at the manpage.

  8. 04 Aug 2006 | # wesley wrote…

    Hey, I couldn’t find the bug report page so i’ll do it here instead. I don’t know what you did on the last update but textmate keeps crashing on certain PHP pages.

    When I load the page it shows just the first few lines syntax highlighted, when I try to edit anything it crashes.

  9. 04 Aug 2006 | # wesley wrote…

    Actually it seems to crash on even the simplest of things:

    <

    p>

  10. 04 Aug 2006 | # Allan Odgaard wrote…

    wesley: the HTML grammar would cause an infinite loop when two PHP tags touched each other — there is an update out to fix it.

  11. 27 Jul 2007 | # pheon wrote…

    Where is the Web Searches bundle?

  12. 28 Jul 2007 | # Allan Odgaard wrote…

Leave a comment

Comment syntax is Markdown.