Function contextMenuItemProvider()
fun marta.contextMenuItemProvider(block: ContextMenuItemProviderDeclaration)
Defines a context menu item provider.
Example:
local pluginId = "marta.example.context.menu"
contextMenuItemProvider {
forFiles = function(context)
if #context.activePane.model.activeFiles == 0 then
return {}
end
local proposedAction = {
actionId = pluginId .. ".my.action",
category = "misc"
}
return { proposedAction }
end
}