[Vimperator] Print preview and page setup plugin

Martin Stubenschrott stubenschrott at gmx.net
Mon Apr 7 08:20:48 PDT 2008


Itai Fiat wrote:

> This is my first post on this mailing list, and, first and foremost, I
> would like to say that that vimperator is awesome. In light of my
> dependence on it, I've been toying with creating a plugin (see below,
> or attachment) to allow print preview and print page setup. It mostly
> works - :psetup opens the page setup dialog, and :preview toggles
> preview mode.


In the development version for Firefox3, which we will probably release
in a few weeks when Firefox3 RC1 hits the streets, you can already do
that with:
:dialog printpreview
and
:dialog printsetup

(und you can even bind other command names to them with :command)

> * How can one disable all vimperator commands, except movement, during
> preview mode? Calling :tabnext or :quit, for example, when in preview
> mode, has unexpected results. This is also an issue when print preview
> is toggled using the GUI, so it might be worth tackling outside this
> plugin.

That's impossible.

--
Martin

PS: The vimperator API has changed with the soon to be released 1.0
version of vimperator, so if you plan to write plugins, i suggest to do
it already with a newer vimperator.


More information about the Vimperator mailing list