Skip to content

GlobalSearchPluginInstance.onFileMenu method

GlobalSearchPluginInstance › onFileMenu

Unofficial

Adds a "Search in folder" item to the file context menu.

Signature:

onFileMenu(menu: Menu, file: TAbstractFile, source: string): void

Parameters:

ParameterTypeDescription
menuMenuThe menu to add to.
fileTAbstractFileThe file or folder the menu was opened on.
sourcestringThe source of the menu (e.g. 'file-explorer-context-menu').

Returns: void