logo
  • Jobs
  • About Me
  • Contact
  • Home
« Generating URLs with ActionMailer
Cappin’ that Stat - Solaris edition »

CMD-K for searching in Safari

Posted April 9th, 2008 by Matt Berther

Using Firefox on my daytime PC and Safari on my evening PC (MBP), I’ve suffered a bit of schizophrenia when it comes to keyboard shortcuts. To get to the Google search box in Safari, I would hit CMD-L (to get to the location bar), and then hit TAB to get to the search box. I very much wanted a CMD-K shortcut, similar to what I use in Firefox.

Earlier today, I found how to do this:

  • Open System Preferences > Keyboard & Mouse > Keyboard Shortcuts
  • Click the add button in the lower left corner
  • Select Safari from the application drop down menu
  • Enter “Google Search…” for the menu title (the … is made by clicking OPTION-;)
  • Focus on the Keyboard Shortcut textbox and press CMD-K
  • Select add and restart Safari

Thanks to the folks over at 5thirtyone for this tip.

This entry was posted on Wednesday, April 9th, 2008 at 7:38 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Mike Moore
April 10th, 2008

Or, you could set this using the terminal:

defaults write com.apple.Safari NSUserKeyEquivalents ‘{“Google Search…”=”⌘k”;}’

http://tumblr.blowmage.com/post/30462165

Mike Moore
April 10th, 2008

Oh, and the default keystroke to go to Safari’s search box is ⌘-OPT-F, which is very similar to ⌘-F for the find on the page.

http://osxdaily.com/2007/01/18/six-simple-must-know-keystrokes-for-safari-users/

Matt Berther
April 10th, 2008

@mike: Even though CMD-OPT-F feels better, it still gives me the confusion between the two browsers. The terminal setting is nice though.

Jerry Rocteur
April 13th, 2008

Thanks for the ⌘k tip in Firefox, I didn’t know it ;-)

Matt Berther
April 13th, 2008

@jerry: Not quite the point of the post, but glad to help… :)

Jerry Rocteur
April 13th, 2008

Note that Mike Moore’s default write instructions completely screwed up Safari to the point that it no longer worked.

I had to restore a copy of com.apple.Safari.plist for it to work again:

cp /Volumes/new_backup/Users/jerry/Library/Preferences/com.apple.Safari.plist .

Matt Berther
April 13th, 2008

@jerry: thank goodness for Time Machine, huh?

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
-->

Social
  • mattberther on twitter
Syndication
Archives
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • December 2004
  • November 2004
  • October 2004
  • September 2004
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • April 2004
  • March 2004
  • February 2004
  • January 2004
  • December 2003
  • November 2003
  • October 2003
  • September 2003
  • August 2003
  • July 2003
  • June 2003
  • May 2003
  • April 2003
  • March 2003
Jobs
mattberther.com © 2003 - 2008