CMD-K for searching in Safari
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.
Or, you could set this using the terminal:
defaults write com.apple.Safari NSUserKeyEquivalents ‘{“Google Search…”=”⌘k”;}’
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/
@mike: Even though CMD-OPT-F feels better, it still gives me the confusion between the two browsers. The terminal setting is nice though.
Thanks for the ⌘k tip in Firefox, I didn’t know it ;-)
@jerry: Not quite the point of the post, but glad to help… :)
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 .
@jerry: thank goodness for Time Machine, huh?
[...] – bookmarked by 1 members originally found by tommyblank on 2008-08-19 CMD-K for searching in Safari http://www.mattberther.com/2008/04/09/cmd-k-for-searching-in-safari/ – bookmarked by 3 members [...]


