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:
- Select Bookmarks > Organise Bookmarks... from the menu.
- Right click on the bookmarks menu (or any folder) on the left pane
- Select New Bookmark... from the context menu
Fill in the information for the bookmark, the import piece is the keyword, that will allow us to search.- Click save and return to the browser
Now when we want to search the Drupal 7 API, we can just type "dapi Now we should see the appropriate page from the Drupal API documentation. 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.
PHP Manual - http://php.net/%s
MySQL 5.1 Manual - http://search.mysql.com/search/query/search?q=%s&group=refman-51&search_...
HTML 4 Elements from W3Schools - http://www.w3schools.com/tags/tag_%s.asp
CSS Reference from SitePoint - http://reference.sitepoint.com/css/%s
jQuery API - http://api.jquery.com/?s=%s
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.
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.
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". :)
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.