Using keyword searches: Difference between revisions
m (category) |
m (replace Location Bar with a link to category) |
||
Line 1: | Line 1: | ||
[[Category:Location Bar]] | [[Category:Location Bar]] | ||
{{appliesto2|Firefox|Mozilla Suite|Searches}} | {{appliesto2|Firefox|Mozilla Suite|Searches}} | ||
In Firefox and Mozilla Suite you can specify keywords for bookmarks by filling in the “Keyword” field in the bookmark’s Properties. When you type the keyword into the [[Location Bar]] and hit <tt>[Enter]</tt>, the keyword will be replaced with the bookmarked URL. For example, bookmarking http://google.com/, giving it a keyword of “<tt>g</tt>”, and typing “<tt>g</tt>” into the Location Bar will take you to Google. | In Firefox and Mozilla Suite you can specify keywords for bookmarks by filling in the “Keyword” field in the bookmark’s Properties. When you type the keyword into the [[:Category:Location Bar|Location Bar]] and hit <tt>[Enter]</tt>, the keyword will be replaced with the bookmarked URL. For example, bookmarking http://google.com/, giving it a keyword of “<tt>g</tt>”, and typing “<tt>g</tt>” into the Location Bar will take you to Google. | ||
What makes keywords very powerful is that if you add a “<tt>%s</tt>” at some place in your bookmark’s URL, it will be replaced by the words you type in after the keyword. (These are sometimes called “Quicksearches”.) For example, if we were to modify the bookmark mentioned above so that it pointed to “<tt>http://google.com/?q=%s</tt>”, we can type “<tt>g mozilla</tt>” into the Location Bar to arrive at “<tt>http://google.com/search?q=mozilla</tt>”. | What makes keywords very powerful is that if you add a “<tt>%s</tt>” at some place in your bookmark’s URL, it will be replaced by the words you type in after the keyword. (These are sometimes called “Quicksearches”.) For example, if we were to modify the bookmark mentioned above so that it pointed to “<tt>http://google.com/?q=%s</tt>”, we can type “<tt>g mozilla</tt>” into the Location Bar to arrive at “<tt>http://google.com/search?q=mozilla</tt>”. |
Revision as of 13:47, 13 December 2005
- This article applies to Firefox and Mozilla Suite.
In Firefox and Mozilla Suite you can specify keywords for bookmarks by filling in the “Keyword” field in the bookmark’s Properties. When you type the keyword into the Location Bar and hit [Enter], the keyword will be replaced with the bookmarked URL. For example, bookmarking http://google.com/, giving it a keyword of “g”, and typing “g” into the Location Bar will take you to Google.
What makes keywords very powerful is that if you add a “%s” at some place in your bookmark’s URL, it will be replaced by the words you type in after the keyword. (These are sometimes called “Quicksearches”.) For example, if we were to modify the bookmark mentioned above so that it pointed to “http://google.com/?q=%s”, we can type “g mozilla” into the Location Bar to arrive at “http://google.com/search?q=mozilla”.
Default searches
By default, Mozilla Firefox comes with several bookmarks with keywords defined. They’re located in the “Quick Searches” folder in the default bookmarks.
Bookmark Name | Keyword | Bookmark URL |
---|---|---|
Google Quicksearch | http://www.google.com/search?q=%s | |
Dictionary.com Quicksearch | dict | http://dictionary.reference.com/search?q=%s |
Stock Symbol Quicksearch | quote | http://www.google.com/search?q=stocks:%s |
Wikipedia Quicksearch | wp | http://en.wikipedia.org/wiki/Special:Search?search=%s |
Urban Dictionary | slang | http://www.urbandictionary.com/define.php?term=%s |
Creating bookmarks with keywords
In Mozilla Firefox, you can simply right-click in a search field on a web page and choose “Add a Keyword for this Search.” This will pop up a dialog for you to add a bookmark name and keyword.
You can also create it manually:
- Do a search on the site you want to add a quicksearch to.
- Bookmark the page you are brought to (the results page).
- Open the Properties dialog for your new bookmark.
- In your bookmark’s URL (the Location field), find and replace what you searched for with %s (If it does not appear, you cannot use a quicksearch here)
- Add a keyword
Note: Mozilla Suite users can use the “Bookmarks → File Bookmark...” feature and edit bookmark’s properties at the moment of its creation.
See also
- List of keyword searches
- Multiple parameter keyword searches
- Location Bar Search
- Tweaking the keyword search to open another page when no search terms specified
External links
- How Cool are Custom Keywords? by Asa Dotzler.
- Smart Keywords
- Firefox smart keywords explained includes screenshots
- CustomKeywords with other links, as well
- Quicksearches -- Samples and Instructions by Chris Poverk, creator of the related SmartSearch extension
- Quicksilver provides access to Mozilla suite/Firefox keyword searches globally (from within any application)--for Mac OS X