[Vimperator] Patch: :tabmove command
Martin Stubenschrott
stubenschrott at gmx.net
Sat May 19 15:54:55 PDT 2007
On Mon, May 14, 2007 at 07:02:12PM +0300, Viktor Kojouharov wrote:
> My ideas on the help are as follows. First and most important, the
> g_Foo variables for settings, commands and mappings have to be broken
> down, and a Help object will be created from most of those.
> the Help object will look something like this
> Help = {
> [
> [tag1, tag2, ...],
> usage,
> short_text,
> help_text,
> maybe type here (whether it's a command, mapping, etc)
> ]
> }
The more I think about it, the less I like it. The idea is to have all
classes quite independent. So in a perfect world, it would just be
possible to comment out a line like:
vimperator.search = new Search() in vimperator.js, and it would be like
all code in find.js just does not exist.
So classes like Search or Hints() should be as autonomous as possible.
I thought that they will just do a:
vimperator.commands.add(new Command("name", func, { usage: "n[ame]",
help: "blabla"});
Of course you could also do a:
vimperator.help.add("bla", "foo") in hints.js, but I think the combined
method with a Command object which holds all property is much nicer.
--
Martin
More information about the Vimperator
mailing list