Skip to content

SwitcherPluginInstance

Unofficial

Plugin instance for the quick switcher, providing fuzzy file search and navigation.

Import:

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

Signature:

export interface SwitcherPluginInstance extends InternalPluginInstance<SwitcherPlugin>

Extends: InternalPluginInstance<SwitcherPlugin>

Properties

PropertyTypeDescription
activeModalnull | QuickSwitcherModalThe currently open quick-switcher modal, or null if none is open.
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)
optionsSwitcherPluginOptionsThe plugin's options.
pluginSwitcherPluginReference to the switcher plugin registration.
QuickSwitcherModalExtractConstructor<QuickSwitcherModal>The quick-switcher modal constructor, called as new QuickSwitcherModal(app, options).

Methods

MethodReturnsDescription
init(app, plugin)voidInitialize the plugin instance with app and plugin references.
(Inherited from InternalPluginInstance)
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)
onExternalSettingsChange()Promise<void>Handles a settings change made externally (e.g. by Sync).
onOpen()Promise<void>Opens the quick switcher.
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)

Links to this page: