Keyword Bookmarking

When doing development work, from time to time it is handy to be able to look up documentation. Bookmarking manuals is handy, but often you still need to search for the function you're after. Firefox, and possibly other browsers (not Chrome or Chromium), allows you to setup a keyword bookmark linked to a search.

I've setup a few search bookmarks for development resources. This is how I've done it:

  1. Select Bookmarks > Organise Bookmarks... from the menu.
  2. Right click on the bookmarks menu (or any folder) on the left pane
  3. Select New Bookmark... from the context menu
  4. Drupal bookmark example
    Fill in the information for the bookmark, the import piece is the keyword, that will allow us to search.
  5. Click save and return to the browser

Now when we want to search the Drupal 7 API, we can just type "dapi Example Drupal API search in location bar

Now we should see the appropriate page from the Drupal API documentation.

Example Drupal API page

The same method can be used for other PHP web app developer resources, here are some which I'm using.

I could have implemented this using OpenSearch plugins, but that requires changing the search provider every time I want to look for something. By using keyword bookmarks I just type the keyword and the search term into the location bar.

Feel free to share your keyword bookmarks in the comments.

Opera is the best for doing

Fidelix wrote:

Opera is the best for doing that.

You just have to right click on the search box that you want to create a keyword search, and type your keyword.

Done.

Added Wed, 2011-01-05 01:59

Possible in Chrome too

Ximo wrote:

Just go to Preferences › Basic and hit the Manage button for the Search option. Then simply add keyword searches as you would add keyword bookmarks in Firefox.

Added Wed, 2011-01-05 03:23

More Shortcuts and Browsers

Travis Carden wrote:

There are more shortcuts as well as instructions for getting the same functionality in all major browsers at http://drupal.org/node/789780 under "Quick Searches". :)

Added Wed, 2011-01-05 06:36

Also from IDE

Lin Clark wrote:

One handy thing that I found in Komodo IDE (and I think is also in Komodo edit) is that you can set up a key command that searches the correct docs from your IDE.

For instance, I can search api.drupal.org for docs about something like hook_field_widget_info by selecting the hook name in the comment and clicking Ctrl+/.

To do this in Komodo, you go to Preferences -> Language Help.

Added Wed, 2011-01-05 07:28

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <div> <blockquote> <pre>

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.