RecentFileTracker
Defined in: src/obsidian/internals/RecentFileTracker.d.ts:8
Properties
lastOpenFiles
lastOpenFiles:
string
[]
Defined in: src/obsidian/internals/RecentFileTracker.d.ts:12
List of last opened file paths, limited to 50
vault
vault:
Vault
Defined in: src/obsidian/internals/RecentFileTracker.d.ts:16
Reference to Vault
workspace
workspace:
Workspace
Defined in: src/obsidian/internals/RecentFileTracker.d.ts:20
Reference to Workspace
Methods
getLastOpenFiles()
getLastOpenFiles():
string
[]
Defined in: src/obsidian/internals/RecentFileTracker.d.ts:27
Returns the last 10 opened files
Returns
string
[]
getRecentFiles()
getRecentFiles(
arg
?):string
[]
Defined in: src/obsidian/internals/RecentFileTracker.d.ts:31
Get last n files of type (defaults to 10)
Parameters
arg?
maxCount
number
showCanvas
boolean
showImages
boolean
showMarkdown
boolean
showNonImageAttachments
boolean
Returns
string
[]
load()
load(
savedFiles
):void
Defined in: src/obsidian/internals/RecentFileTracker.d.ts:41
Set the last opened files
Parameters
savedFiles
string
[]
Returns
void