Skip to content

FileExplorerPluginInstance

Unofficial

Plugin instance for the file explorer, managing the file tree sidebar view.

Import:

import type { FileExplorerPluginInstance } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface FileExplorerPluginInstance extends InternalPluginInstance<FileExplorerPlugin>

Extends: InternalPluginInstance<FileExplorerPlugin>

Properties

PropertyTypeDescription
appAppReference to the app.
defaultOntrueWhether this plugin is enabled by default.
descriptionstringHuman-readable description of this plugin.
(Inherited from InternalPluginInstance)
idstringUnique identifier for this plugin.
(Inherited from InternalPluginInstance)
namestringHuman-readable display name of this plugin.
(Inherited from InternalPluginInstance)
pluginFileExplorerPluginReference to the file explorer plugin registration.

Methods

MethodReturnsDescription
init(app, plugin)voidInitialize the plugin instance with app and plugin references.
(Inherited from InternalPluginInstance)
initLeaf()voidEnsures the file explorer leaf exists in the left sidebar.
onDisable(app, plugin)voidCalled when the plugin is disabled.
(Inherited from InternalPluginInstance)
onEnable(app, plugin)Promise<void>Called when the plugin is enabled.
(Inherited from InternalPluginInstance)
onFileMenu(menu, file, source)voidAdds file-explorer items to the file context menu.
onUserDisable(app)voidCalled when the user manually disables the plugin.
(Inherited from InternalPluginInstance)
onUserEnable(app)voidCalled when the user manually enables the plugin.
(Inherited from InternalPluginInstance)
revealInFolder(item)voidReveals a file or folder in the file explorer view, opens the view if it is not already. open/visible.

Links to this page: