Extending the Main.lua file name

Currently the Corona SDK requires the main file to be “main.lua”. I use BBedit and may have a number of main.lua files open at once for multiple projects or when viewing sample code. With a number of main.lua I find it hard to determine which one I’m working on without clicking on each main.lua file or holding the cursor over the file name and waiting for the file information to be displayed. Sometimes I use the finder to search for lua files and all the main.lua files looks the same (unless you click to display the folder).

My suggestion is to allow an extension of the main.lua file name to sometime like “main_facebook.lua”. The name would still start with “main” but the extension ("_facebook") would provide a description of what the project is.

The change to the Corona Simulator/builder would be to search for a file name starting with “main” and disregard the “_ …” characters.

Tom [import]uid: 6119 topic_id: 1170 reply_id: 301170[/import]

Added feature request as #249. [import]uid: 54 topic_id: 1170 reply_id: 3176[/import]

Did this ever get implemented? I’m trying to figure out how to call a different lua page all together when an icon is clicked (for example)
[import]uid: 9046 topic_id: 1170 reply_id: 6927[/import]

Or how about a project file that, among other things, specifies the starting lua file. Then it wouldn’t have to have any specific name. Plus, we could then set that type of file to load into the Corona simulator, for a quick double-click launch of the app we’re working on.

As long as I’m on the subject, why not allow us to select the lua file when we use File > Open in the simulator instead of just choosing the folder?

Jay (J. A. Whye)
[import]uid: 9440 topic_id: 1170 reply_id: 6941[/import]