Skip to content

AppActiveFileProvider

ActiveFileProvider backed by Obsidian’s App.

Import:

import { AppActiveFileProvider } from '@mnaoumov/obsidian-lib/active-file-provider';

Signature:

export class AppActiveFileProvider implements ActiveFileProvider

Implements: ActiveFileProvider

Constructor

new AppActiveFileProvider(app: App)

Creates a new app-backed active file provider.

Properties

PropertyTypeDescription
getActiveFile() => null | TFileGets the currently active file.
(Inherited from ActiveFileProvider)

Methods

MethodReturnsDescription
getActiveFile()null | TFileGets the currently active file from the workspace.

Links to this page: