Skip to content
Obsidian Typings
Public (1.13.7)
|
Catalyst (1.13.7)
Search
Ctrl
K
Cancel
Github
Select theme
Dark
Light
Auto
Github
Select theme
Dark
Light
Auto
Workspace.getActiveFile method
Workspace
› getActiveFile
Official
Returns the file for the current view if it's a
FileView
. Otherwise, it will return the most recently active file.
Signature:
getActiveFile
(): TFile
|
null
Returns:
TFile
|
null