:rikaichan for Vimperator
Some of my favourite Firefox plugins are:
- Rikaichan, a Japanese dictionary, which adds instant translation popups when you mouse over a word;
- Vimperator, which provides vi-like user interface;
- and Hide Tab Bar, because Vimperator's buffer list is more useful.
Vimperator hides the menu bar by default. Tools->Toggle Rikaichan has no default keybinding, and the keybindings to navigate the menubar are not available if the menubar is not visible, so Rikaichan can no longer be activated.
The following adds a vimperator command :rikaichan; save it to .vimperator/plugin/toggleRikaichan.js:
(function(){
vimperator.commands.add(new vimperator.Command(
['rikaichan', 'rikai'],
function(){
rcxMain.inlineToggle();
}
))
}) ();
It is aliased to :rikai for short, but unfortunately vimperator won't recognize :理解. Thanks to ktsukagoshi for the explanation of how to write a vimperator plugin (vimperatorのプラグインの作成).
Remember, the interface is inside your mind.
Labels: firefox, rikaichan, vimperator
