Context
Context is an editor which allows you to enter commands while you type. Moreover, the commands can be
intelligent
-- they can access external resources and provide you with contextual feedback beyond what has traditionally been possible.
Try it!
While you are typing, hit the backslash (\) key. This puts you in command mode. Now type
wiki
and hit enter. Enter a wikipedia page you want to link to, and the search happens in real-time! Just hit enter to enter the link and keep typing! You've inserted a link without touching your mouse, writing any code or even switching to another tab.
Other commands available:
yahoo
- Does a full Yahoo! search rather than just a Wikipedia search.
h1
- Inserts a new level-1 heading (like the word "Context" up there) where you are typing.
h2
- Inserts a new level-2 heading (like the words "Try it!") where you are typing.
The possibilities are endless for useful commands, especially in the context of blogging, email or word processing.
Implementation
Context uses the YUI Rich Text Editor and Autocomplete controls and asynchronously calls Yahoo's search API to get the search results for both Yahoo! and Wikipedia.