![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
On Sun, Jul 18 2010, Taco Hoekwater wrote:
If you start your files like this:
command = command or {} command['placefloat'] = { comment = "Insert a floating element.", ... }
then they could easily all be merged into a single command table during loading or even via 'cat'.
Like Mojca says, it is better not to be dependent on the file name, and also it is more efficient to have a single lua file than 500-600 separate ones. There is no need to combine them immediately, but if this goes into the distro at some point then a single large file is definitely better than lots of smaller ones.
Ok, I agree. The very strong reason for one file per command is the better comfort when editing the files. And the big file for the distribution can be generated with cat * >commands.lua Peter -- Contact information: http://pmrb.free.fr/contact/