Code: Select all
Controls:
Sequence - either Lua/MoonScript chunk or @<filename>
if it begins with an '=' then far.Show() is called on it.
Parameters - comma separated list of Lua/MoonScript expressions
[x] Reuse environment - use the previous Lua environment for the new run
[x] Loop this dialog - call this dialog again after the execution
Preset "global" variables:
F = far.Flags
Message = far.Message
Show = far.Show
WI = far.AdvControl("ACTL_GETWINDOWINFO") -- window info
API = panel.GetPanelInfo(nil,1) -- active panel info
PPI = panel.GetPanelInfo(nil,0) -- passive panel info
EI = editor.GetInfo() -- editor info
VI = viewer.GetInfo() -- viewer info
Cnt = automatic counter of runs in the current Lua environment