Re: Tutorial vs. help screen

Jeremy Hankins <nowan-vHQ/[email protected]>
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <[email protected]>
I said:

> Tuomo suggested one way of doing this (using bdoc), another might be to use a
> menu structure to represent commonly used commands and set up a
> helper-function that would call a particular menu entry, which would then be
> bound rather than the lua code itself.

Actually, a better solution would probably be to simply create a table
consisting of command names and strings of lua code implementing them.  The
helper function would simply evaluate to the lua string, which would get
bound.  No real need to get it messed up with the menu structures.  If
desired there could be a lookup table of documentation for the commands as
well.

The slightly tricky bit would be to account for the different sorts of
options passed in the binding (_, _sub, etc.).  Simplest would be to make
different ways of calling the lua function different commands, where
necessary.

-- 
Jeremy Hankins <nowan-vHQ/[email protected]>
PGP fingerprint: 748F 4D16 538E 75D6 8333  9E10 D212 B5ED 37D0 0A03
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.