Skip to content

BacklinkPluginInstance

Unofficial

Plugin instance for backlinks, managing backlink view lifecycle and file event handling.

Import:

import type { BacklinkPluginInstance } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface BacklinkPluginInstance extends InternalPluginInstance<BacklinkPlugin>

Extends: InternalPluginInstance<BacklinkPlugin>

Properties

PropertyTypeDescription
appAppReference to the app.
defaultOntrueWhether this plugin is enabled by default.
descriptionstringHuman-readable description of this plugin.
(Inherited from InternalPluginInstance)
file?null | TFileThe currently tracked file for backlinks.
idstringUnique identifier for this plugin.
(Inherited from InternalPluginInstance)
namestringHuman-readable display name of this plugin.
(Inherited from InternalPluginInstance)
optionsBacklinkPluginInstanceOptionsConfiguration options for the backlink plugin.
pluginBacklinkPluginReference to the backlink plugin registration.

Methods

MethodReturnsDescription
init(app, plugin)voidInitialize the plugin instance with app and plugin references.
(Inherited from InternalPluginInstance)
initLeaf()voidInitialize the backlink view leaf.
onDisable(app, plugin)voidCalled when the plugin is disabled.
(Inherited from InternalPluginInstance)
onEnable(app, plugin)Promise<void>Called when the plugin is enabled.
onEnable(app, plugin)Promise<void>Called when the plugin is enabled.
(Inherited from InternalPluginInstance)
onExternalSettingsChange()Promise<void>Handle external settings file changes and reload configuration.
onFileMenu(menu, file, source, leaf?)voidAdd backlink-related items to a file context menu.
onFileOpen(file)voidHandle a file being opened and update backlink tracking.
onUserDisable(app)voidCalled when the user disables the plugin.
onUserEnable()voidCalled when the user enables the plugin.
onUserEnable(app)voidCalled when the user manually enables the plugin.
(Inherited from InternalPluginInstance)
openBacklinksForActiveFile(skipSplit)boolean | undefinedOpen the backlinks pane for the currently active file.
toggleBacklinksInDocument(skip)boolean | undefinedToggle the inline backlinks display within the document view.
updateBacklinks()voidRefresh the backlink results for the current file.

Links to this page: