pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.62k stars 518 forks source link

startfile and Command line arguments #1015

Open jjvbsag opened 5 years ago

jjvbsag commented 5 years ago

Is it possible to override the startfile in projectsettings .zbstudio/user.lua ? How? Also I'd like to request, the 'Command line parameters' are stored based on the startfile, so if I have different startfiles in a project, changing the startfile will select related 'command line parameters'

pkulchenko commented 5 years ago

I think this is too narrow focused. What I can probably do is to add a new callback when the start file is set, which will allow you to do whatever you'd like (including setting the command line settings). You can then write a plugin that will implement saving the command line setting and then restoring it on the startfile change.