Skip to content

resolveFolderNotePluginConfigs

Resolves the folder-note setup of every ENABLED folder-note plugin this library recognizes, so every consumer reads their conventions the same way: Folder notes, Folder Note, Waypoint and Folder Index, in the order of their downloads. A plugin whose settings are not a shape its adapter recognizes, and a Folder notes set to a storage location with no counterpart here, contribute nothing.

The settings are read on every call, so a plugin reconfigured, enabled or disabled is followed at once.

Import:

import { resolveFolderNotePluginConfigs } from '@mnaoumov/obsidian-lib/folder-note';

Signature:

function resolveFolderNotePluginConfigs(params: ResolveFolderNotePluginConfigsParams): FolderNoteConfig[]

Parameters:

Parameter Type Description
params ResolveFolderNotePluginConfigsParams The app to read the plugins from.

Returns: FolderNoteConfig[] — The setups, in that order; empty when no such plugin is enabled.


Links to this page: