Skip to content

FolderNoteConfig

A folder-note setup with FolderNoteLocation.Auto already resolved to a concrete answer.

Import:

import type { FolderNoteConfig } from 'obsidian-dev-utils/obsidian/folder-note';

Signature:

export interface FolderNoteConfig

Properties

PropertyTypeDescription
extensionsreadonly string[]The extensions a folder note may carry, WITHOUT the leading dot, in resolution order — the first one that names an existing file wins.
isHiddenbooleanWhether the folder note is hidden in the file explorer.

Read rather than acted upon here: it changes nothing about WHICH file is the folder note, but a caller that reveals the note has to know there is nothing to reveal and fall back to revealing the folder.
locationFolderNoteLocation.InsideFolder | FolderNoteLocation.None | FolderNoteLocation.ParentFolderWhere the note sits relative to its folder.

Methods

MethodReturnsDescription
resolveName(this, folder)stringNames the folder note of a folder, WITHOUT its extension.

Links to this page: