Getting Started
1). Setup Browser
The first step is to change your browser's default search engine to KeyFu.
Chrome or Chromium
- Click the Tool menu
in the browser - Select Options (or Preferences)
- Click the Basics tab
- Click the Manage Search Engines... button
- Scroll down until you find KeyFu, hover over it and click Make Default
Firefox
- Click the drop-down to the left of the search box (usually the Google icon)
- Select Add "KeyFu"
2). Add Keyword
- Open a new tab
- Use your browser's search shortcut to activate a search
- Linux/Windows: Ctrl+K
- Mac (Firefox): ⌘+K
- Mac (Chrome/Chromium): ⌘-Option-F
- Type :add facebook and hit Enter (you can omit the second argument to see a browsable list of all keywords)
- Type fb into the textbox and hit Enter
- Hit Ctrl+Enter to save (or click the Save button)
3). Use Keyword
- Activate the search bar (see above for shortcuts)
- Type fb and hit Enter
- Notice you were redirected to
www.facebook.com - Activate the search bar again
- Type fb new york city and hit Enter
- Notice you were redirected to
www.facebook.com/search.php?q=new+york+city
This process of activating a browser's search functionality, entering a keyword and hitting the Enter key is known as running a keyword (ex: run fb means activate search, type fb and hit the Enter key).
4). Create a Custom Keyword
Now lets say we want a keyword for the nodejs mailing list, but it doesn't exist when we search for it with the :add keyword. To solve this KeyFu allows you to create custom keywords.
- Run :edit nml (node mailing list)
- Notice the three input fields, the first is the key (nml), the second is the type (we'll just use link for now) and the third is the body (which is empty)
- The link type supports a very basic syntax, the first line is executed if a keyword is run without additional text, otherwise the second line is run. With that in mind, type http://groups.google.com/group/nodejs on the first line.
- Next open http://groups.google.com/group/nodejs in a new window
- Type TEST into the search box and click the Search this group button
- Copy and paste the resulting URL onto the second line and replace all instances of
TESTwith %s - Hit Ctrl+Enter (or click the Save button)
- Now run nml and nml meetup
We've now created a custom keyword that we can access via the nml key, without additional text this keyword will redirect to the nodejs mailing list frontpage and with text it will search the nodejs mailing list.
If we had only entered one url (either the direct link or the search link), KeyFu would try to be smart about doing the right thing.
5). Manage Keywords
- Run :list to view all your keywords
- Run :list f to view all your keywords starting with the letter
f - Run :rename fb facebook to rename the
fbkeyword tofacebook - Run :delete facebook to delete the
facebookkeyword
6). Getting More Information
- Run :cheatsheet or :cs for a list of commands
- Visit the help section
