Skip to content

NoteComposerPluginInstance

Unofficial

Plugin instance for note composer, providing note merging and splitting functionality.

Import:

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

Signature:

export interface NoteComposerPluginInstance extends InternalPluginInstance<NoteComposerPlugin>

Extends: InternalPluginInstance<NoteComposerPlugin>

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)
optionsNoteComposerPluginOptionsConfiguration options for the note composer.
pluginInstanceNoteComposerPluginReference to the note composer plugin registration.

Methods

MethodReturnsDescription
applyTemplate(content, fromTitle, newTitle)Promise<string>Apply a template to content, substituting title placeholders.
extractHeading(file, editor)voidExtract the content under a heading into a new note.
getSelectionUnderHeading(file, editor, line)HeadingInfo | nullGet the text selection range under a heading at the given line.
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)
onEditorMenu(menu, editor, info)voidAdd note composer items to the editor context menu.
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)voidAdd note composer items to a 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)

Links to this page: