Skip to content

FoldManager

Unofficial

Manager for persisting and restoring editor fold states.

Import:

import type { FoldManager } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface FoldManager

Constructor

new FoldManager(app: App)

Constructor.

To get the constructor instance, use getFoldManagerConstructor from obsidian-typings/implementations.

Properties

PropertyTypeDescription
appAppReference to the app.

Methods

MethodReturnsDescription
cleanup()unknownRemove stale fold data from the cache.
load(arg1)unknownLoad fold state for the given file or view.
loadPath(arg1)unknownLoad fold state from a specific path.
save(arg1, arg2)unknownSave fold state for the given file or view.
savePath(arg1, arg2)unknownSave fold state to a specific path.

Links to this page: