[Vimperator] JavaScript for Google Bookmark(let)
Martin Stubenschrott
stubenschrott at gmx.net
Sun Feb 24 04:43:55 PST 2008
Andrzej Ostruszka wrote:
> I'm not the best person to answer since I don't know JavaScript but I
> made for exactly this purpose the following mapping:
> map gb :javascript
> loadURI("http://www.google.com/bookmarks/mark?op=edit&bkmk="+encodeURIComponent(vimperator.buffer.URL)+"&title="+vimperator.buffer.title)<CR>
That's the obvious solution, yeah :)
However, in :javascript, "vimperator." is the default namespace, so you
can also write buffer.URL instead of vimperator.buffer.URL there.
This is important, because i plan to rename the "vimperator" namespace
in the source code to "VIM". This is done, because I plan to "port"
vimperator also to thunderbird (and maybe even other mozilla apps), and
since they have different names (muttator in the thunderbird example),
using a common VIM namespace makes more sense than having to write
vimperator.buffer.URL in one config file, and muttator.buffer.URL in the
other.
--
Martin
More information about the Vimperator
mailing list