blog.kfish.org

My name is Conrad Parker, and I live in Kyoto, Japan. I am working towards a PhD in Computer Science at Kyoto University, finishing September 2009. I also work on some free software projects including the Sweep sound editor and the Annodex media system, and various smaller projects which you can read about here.

Thursday, 17 April 2008

: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: , ,

1 Comments:

Blogger Conrad Parker said...

It seems that the Hide Tab Bar extension has a little problem in that it shows the tab bar again whenever you add a new tab.

However, Horms pointed out that Vimperator lets you hide the tab bar permanently by doing
:set showtabline=0, so the Hide Tab Bar extension isn't required at all.

21 April 2008 10:04  

Post a Comment

Links to this post:

Create a Link

<< Home