On Mon, Mar 29, 2004 at 10:52:09AM -0500, Ted Zlatanov wrote: > A configuration editor that can do simple tasks. It should be able > to do simple key bindings to existing functions, and to create new > "placeholder" empty functions that the user can fill in. > > I realize this is a complex project, and my Lua knowledge is not good > enough to tell if it's even feasible, but it would certainly make Ion > a lot more useful to new users.
I'm personally not going to write such an editor, but one of the reasons I changed the binding configuration functions to use strings was to make it easier to write a configuration editor. (The other reason was that a lot of people seem to have trouble understanding function references.) Also I've reduced the amount of functions normally used in configuration files (single defbindings etc.), so it should be quite easy to write a configuration editor. It is not even necessary to use Lua to write the editor, but it is perhaps easiest to read the configuration files by defining or exporting that small set of functions to Lua and having it execute the files. My wrapper generator (mkexports.lua plus luaextl/) is perhaps the easiest to use for C programs (it should be relatively independent of rest of Ion and I should perhaps repackage it as a standalone library dependant only on libtu) as it doesn't require any extra definition files unlike SWIG or toLua. For C++ there may be an even better solution, whose name I can't recall now, based on templates. -- Tuomo
