Skip to content

RecentFileTracker

Properties

lastOpenFiles

lastOpenFiles: string[]

List of last opened file paths, limited to 50


vault

vault: Vault

Reference to Vault


workspace

workspace: Workspace

Reference to Workspace

Methods

getLastOpenFiles()

getLastOpenFiles(): string[]

Returns the last 10 opened files

Returns

string[]


getRecentFiles()

getRecentFiles(arg?): string[]

Get last n files of type (defaults to 10)

Parameters

arg?

arg.maxCount?: number

arg.showCanvas?: boolean

arg.showImages?: boolean

arg.showMarkdown?: boolean

arg.showNonImageAttachments?: boolean

Returns

string[]


load()

load(savedFiles): void

Set the last opened files

Parameters

savedFiles: string[]

Returns

void