Skip to content

FoldManager

Unofficial

Manager for persisting and restoring editor fold states.

Import:

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

Signature:

export interface FoldManager

Constructor

new FoldManager(app: App)

Constructor.

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

Properties

Property Type Description
app App Reference to the app.

Methods

Method Returns Description
cleanup() unknown Remove stale fold data from the cache.
load(arg1) unknown Load fold state for the given file or view.
loadPath(arg1) unknown Load fold state from a specific path.
save(arg1, arg2) unknown Save fold state for the given file or view.
savePath(arg1, arg2) unknown Save fold state to a specific path.

Links to this page: