Lua API changelog
API 2.2 (Marta 0.8.2)
- Lua updated to 5.4.7
- Added
Path and parsePath for more consistent path handling. File.path now returns a Path. FileSystem.get() still accepts passing strings ActionContext and WeakActionContext are now instantiableListModelHandler.modelRefreshed() renamed to modelReloaded(), stateUpdated() renamed to modelUpdated(). Old method names are deprecated but still work
API 2.1 (Marta 0.8.1)
File and FileSystem can now be equality-checked- Fixed
ListModel.select() and ListModel.deselect(). Methods now accept either a range of indices, or a single index - Added
Action.menuName - Added
FileSystem.moveToTrash - Added
ListModel.currentFileInfo - Added
cachesFolder, configurationFolder, pluginsFolder and pluginFolder to MartaApplication - Removed
File properties that didn’t work since 0.8 and were not removed from the API reference by mistake
API 2.0 (Marta 0.8)
- All new API for handling files and file systems:
FileSystem, File and FileInfo instead of VirtualFileSystem, VirtualFile and TargetFile - All continous IO operations suspend Lua script execution without blocking the UI
- Instead of throwing errors requiring
pcall() wrapping, multiple return values are used ListModel exposes ListItem (can be a file or a go-up entry)- Tab-related functionality moved from
PaneManager to TabManager ListModelHandlerDeclaration.directoryChanged() renamed to locationChanged()ActionRepository renamed to ActionsContextMenuItemProviderDeclaration handlers accept ActionContext instead of array of selected files
API 1.0 (Marta 0.7)
- Initial version of Lua API