Lua API changelog
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 Actions
ContextMenuItemProviderDeclaration
handlers accept ActionContext
instead of array of selected files
API 1.0 (Marta 0.7)
- Initial version of Lua API