Skip to content

App

API reference uses a reviewed source snapshot. Source links open the published source; unverified line locations are omitted.

Defined in: context.svelte.ts:297

Central runtime service container exposed to plugins, views, and renderer integrations.

App owns the active vault session, workspace layout, plugin runtime, commands, metadata cache, notifications, and related shared services.

new App(props): App

Defined in: context.svelte.ts:379

Create the application service container for a mounted vault session.

AppStateProperties

Runtime services and adapters required to bootstrap the app.

App

readonly agentResultViews: AppResultViewRegistry

Defined in: context.svelte.ts:349


readonly agentSkills: AppSkillRegistry

Defined in: context.svelte.ts:347


readonly agentSlashCommands: AppSlashCommandRegistry

Defined in: context.svelte.ts:348


readonly agentTools: AppToolRegistry

Defined in: context.svelte.ts:346


readonly appDatabase: AppDatabase

Defined in: context.svelte.ts:303


commands: CommandManager

Defined in: context.svelte.ts:333


readonly configuration: Configuration

Defined in: context.svelte.ts:314


readonly configurationOptionSources: ConfigurationOptionSourceRegistry

Defined in: context.svelte.ts:341


readonly contextKeys: ContextKeyService

Defined in: context.svelte.ts:317


readonly dailyDocumentProviders: DailyDocumentProviderRegistry

Defined in: context.svelte.ts:344


readonly editors: Map<string, Set<ExtType>>

Defined in: context.svelte.ts:312


readonly editorSuggest: Map<string, Set<EditorSuggest<any>>>

Defined in: context.svelte.ts:313


embedRegistry: EmbedRegistry

Defined in: context.svelte.ts:340


readonly fileEditingSessions: FileEditingSessionRegistry

Defined in: context.svelte.ts:352


readonly fileManager: FileManager

Defined in: context.svelte.ts:315


readonly i18n: LocalizationManager = localeManager

Defined in: context.svelte.ts:299


readonly icons: IconRegistry

Defined in: context.svelte.ts:300


readonly indexProjections: IndexProjectionRegistry

Defined in: context.svelte.ts:345


keymap: Keymap

Defined in: context.svelte.ts:310


readonly languageServices: LanguageServiceManager

Defined in: context.svelte.ts:358


lastEvent: UserEvent | null

Defined in: context.svelte.ts:353


readonly logger: Logger

Defined in: context.svelte.ts:371


mardownCodeBlockPostProcessor: Record<string, MarkdownPostProcessor[]>

Defined in: context.svelte.ts:326


mardownPostProcessor: MarkdownPostProcessor[]

Defined in: context.svelte.ts:325


markdownDirectiveRenderers: Record<string, MarkdownDirectiveRenderer>

Defined in: context.svelte.ts:328


readonly markdownExtensions: MarkdownExtensionRegistry

Defined in: context.svelte.ts:350


readonly markdownFileSurfaces: MarkdownFileSurfaceRegistry

Defined in: context.svelte.ts:351


readonly markdownViewMenuItems: Set<MarkdownViewMenuItemProvider>

Defined in: context.svelte.ts:330


metadataCache: MetadataCache

Defined in: context.svelte.ts:336


metadataTypeManager: MetadataTypeManager

Defined in: context.svelte.ts:331


readonly optional nativeHistoryIndex?: NativeHistoryIndex

Defined in: context.svelte.ts:305


readonly optional nativeTasks?: NativeTasksSession

Defined in: context.svelte.ts:306


readonly nostr: NostrSignerHost

Defined in: context.svelte.ts:322


notifications: NotificationManager

Defined in: context.svelte.ts:356


readonly pluginDistribution: DefaultPluginDistributionManager

Defined in: context.svelte.ts:321


plugins: PluginManager

Defined in: context.svelte.ts:308


readonly props: AppPublicProperties

Defined in: context.svelte.ts:298


renderContext: RenderContext

Defined in: context.svelte.ts:354


readonly safeMode: AppSafeModeState

Defined in: context.svelte.ts:307


scope: Scope

Defined in: context.svelte.ts:309


readonly searchDocumentProviders: SearchDocumentProviderRegistry

Defined in: context.svelte.ts:342


readonly searchResultProviders: SearchResultProviderRegistry

Defined in: context.svelte.ts:343


secretStorage: SecretStorage

Defined in: context.svelte.ts:355


readonly optional session?: VaultSession

Defined in: context.svelte.ts:304


readonly settings: AppSettings

Defined in: context.svelte.ts:311


settingsOpen: boolean

Defined in: context.svelte.ts:334


settingsTabId: string | null

Defined in: context.svelte.ts:335


readonly statusBar: StatusBarManager

Defined in: context.svelte.ts:318


telemetry: TelemetryService

Defined in: context.svelte.ts:357


readonly urls: AppUrlService

Defined in: context.svelte.ts:319


readonly vault: Vault

Defined in: context.svelte.ts:302


readonly vaultChanges: VaultChangeService

Defined in: context.svelte.ts:316


readonly workspace: Workspace

Defined in: context.svelte.ts:301


readonly workspaceTrust: WorkspaceTrustService

Defined in: context.svelte.ts:320

get backgroundIndexing(): NativeBackgroundIndexingObserver | undefined

Defined in: context.svelte.ts:337

NativeBackgroundIndexingObserver | undefined


get internalPlugins(): object

Defined in: context.svelte.ts:367

object

getEnabledPluginById: (pluginId) => any

string

any

plugins: Record<string, { manifest: PluginManifest; }>


get isDarkMode(): boolean

Defined in: context.svelte.ts:864

boolean


get version(): string

Defined in: context.svelte.ts:860

string

editorExtensions(viewType, context?): Extension[]

Defined in: context.svelte.ts:727

string

Record<string, any> = {}

Extension[]


emulateMobile(enable?): Promise<void>

Defined in: context.svelte.ts:886

Force mobile or desktop workspace layout and reload the app.

Intended for devtools/console use when testing mobile shell behavior on desktop viewports.

boolean = true

When true or omitted, forces mobile layout; when false, forces desktop layout.

Promise<void>


loadLocalStorage(key): string | null

Defined in: context.svelte.ts:868

string

string | null


openFile(file, openState?): Promise<void>

Defined in: context.svelte.ts:677

TFile

OpenViewState

Promise<void>


registerEditorExtension(extension, viewType?): void

Defined in: context.svelte.ts:755

Registers a CodeMirror 6 extension. To reconfigure cm6 extensions for a plugin on the fly, an array should be passed in, and modified dynamically. Once this array is modified, calling Workspace#updateOptions will apply the changes.

ExtType

Must be a CodeMirror 6 Extension, or an array of Extensions.

string = "markdown"

void


registerEditorSuggest(suggest, viewType?): void

Defined in: context.svelte.ts:776

EditorSuggest<any>

string = "markdown"

void


registerMarkdownCodeBlockProcessor(language, postProcessor): void

Defined in: context.svelte.ts:810

string

MarkdownPostProcessor

void


registerMarkdownDirectiveRenderer(directive, renderer): void

Defined in: context.svelte.ts:837

string

MarkdownDirectiveRenderer

void


registerMarkdownPostProcessor(postProcessor): void

Defined in: context.svelte.ts:795

MarkdownPostProcessor

void


registerMarkdownViewMenuItem(provider): void

Defined in: context.svelte.ts:852

MarkdownViewMenuItemProvider

void


saveLocalStorage(key, data): void

Defined in: context.svelte.ts:872

string

string

void


setting(id): SettingGroup

Defined in: context.svelte.ts:896

"options" | "core-plugins" | "community-plugins"

SettingGroup


setWorkspaceTrusted(trusted): void

Defined in: context.svelte.ts:673

boolean

void


unregisterEditorExtension(extension, viewType?): void

Defined in: context.svelte.ts:766

ExtType

string = "markdown"

void


unregisterEditorSuggest(suggest, viewType?): void

Defined in: context.svelte.ts:787

EditorSuggest<any>

string = "markdown"

void


unregisterMarkdownCodeBlockProcessor(language, postProcessor): void

Defined in: context.svelte.ts:826

string

MarkdownPostProcessor

void


unregisterMarkdownDirectiveRenderer(directive): void

Defined in: context.svelte.ts:847

string

void


unregisterMarkdownPostProcessor(postProcessor): void

Defined in: context.svelte.ts:804

MarkdownPostProcessor

void


unregisterMarkdownViewMenuItem(provider): void

Defined in: context.svelte.ts:856

MarkdownViewMenuItemProvider

void