AppActiveFileProvider
ActiveFileProvider backed by Obsidian’s App.
Import:
import { AppActiveFileProvider } from '@mnaoumov/obsidian-lib/active-file-provider';Signature:
export class AppActiveFileProvider implements ActiveFileProviderImplements: ActiveFileProvider
Constructor
new AppActiveFileProvider(app: App)Creates a new app-backed active file provider.
Properties
| Property | Type | Description |
|---|---|---|
| getActiveFile | () => null | TFile | Gets the currently active file. (Inherited from ActiveFileProvider) |
Methods
| Method | Returns | Description |
|---|---|---|
| getActiveFile() | null | TFile | Gets the currently active file from the workspace. |
Links to this page: