App
Defined in: obsidian.d.ts:383
Constructors
new App()
new App():
App
Returns
Properties
appId
appId:
string
Defined in: src/obsidian/augmentations/App.d.ts:31
ID that uniquely identifies the vault
commands
commands:
Commands
Defined in: src/obsidian/augmentations/App.d.ts:39
Contains all registered commands
customCss
customCss:
CustomCSS
Defined in: src/obsidian/augmentations/App.d.ts:45
Custom CSS (snippets/themes) applied to the application
dom
dom:
ObsidianDOM
Defined in: src/obsidian/augmentations/App.d.ts:49
References to important DOM elements of the application
embedRegistry
embedRegistry:
EmbedRegistry
Defined in: src/obsidian/augmentations/App.d.ts:55
Registry that manages the creation of generic media type embeds
fileManager
fileManager:
FileManager
Defined in: obsidian.d.ts:399
hotkeyManager
hotkeyManager:
HotkeyManager
Defined in: src/obsidian/augmentations/App.d.ts:70
Manages global hotkeys
internalPlugins
internalPlugins:
InternalPlugins
Defined in: src/obsidian/augmentations/App.d.ts:76
Manager of internal ‘core’ plugins
isMobile
isMobile:
boolean
Defined in: src/obsidian/augmentations/App.d.ts:84
Whether the application is currently running on mobile
keymap
keymap:
Keymap
Defined in: obsidian.d.ts:386
lastEvent
lastEvent:
null
|UserEvent
Defined in: obsidian.d.ts:405
The last known user interaction event, to help commands find out what modifier keys are pressed.
loadProgress
loadProgress:
LoadProgress
Defined in: src/obsidian/augmentations/App.d.ts:86
metadataCache
metadataCache:
MetadataCache
Defined in: obsidian.d.ts:396
metadataTypeManager
metadataTypeManager:
MetadataTypeManager
Defined in: src/obsidian/augmentations/App.d.ts:98
Manages the frontmatter properties of the vault and the rendering of the properties
mobileTabSwitcher
mobileTabSwitcher:
null
|MobileTabSwitcher
Defined in: src/obsidian/augmentations/App.d.ts:101
plugins
plugins:
Plugins
Defined in: src/obsidian/augmentations/App.d.ts:114
Manages loading and enabling of community (non-core) plugins
scope
scope:
Scope
Defined in: obsidian.d.ts:388
setting
setting:
AppSetting
Defined in: src/obsidian/augmentations/App.d.ts:123
Manages the settings modal and its tabs
title
title:
string
Defined in: src/obsidian/augmentations/App.d.ts:133
Name of the vault with version suffix
vault
vault:
Vault
Defined in: obsidian.d.ts:394
viewRegistry
viewRegistry:
ViewRegistry
Defined in: src/obsidian/augmentations/App.d.ts:148
Manages the construction of appropriate views when opening a file of a certain type
workspace
workspace:
Workspace
Defined in: obsidian.d.ts:391
Methods
changeTheme()
changeTheme(
theme
):void
Defined in: src/obsidian/augmentations/App.d.ts:159
Sets the accent color of the application (light/dark mode)
Parameters
theme
"obsidian"
| "moonstone"
Returns
void
copyObsidianUrl()
copyObsidianUrl(
file
):void
Defined in: src/obsidian/augmentations/App.d.ts:165
Copies Obsidian URI of given file to clipboard
Parameters
file
File to generate URI for
Returns
void
debugMode()
debugMode(
isEnabled
):void
Defined in: src/obsidian/augmentations/App.d.ts:171
Toggles debug mode
Parameters
isEnabled
boolean
Whether to enable or disable debug mode
Returns
void
disableCssTransition()
disableCssTransition():
void
Defined in: src/obsidian/augmentations/App.d.ts:175
Disables all CSS transitions in the vault (until manually re-enabled)
Returns
void
emulateMobile()
emulateMobile(
emulate
):void
Defined in: src/obsidian/augmentations/App.d.ts:181
Restarts Obsidian and renders workspace in mobile mode
Parameters
emulate
boolean
Returns
void
enableCssTransition()
enableCssTransition():
void
Defined in: src/obsidian/augmentations/App.d.ts:185
Enables all CSS transitions in the vault
Returns
void
fixFileLinks()
fixFileLinks(
element
):void
Defined in: src/obsidian/augmentations/App.d.ts:191
Manually fix all file links pointing towards image/audio/video resources in element
Parameters
element
Element to fix links in
Returns
void
garbleText()
garbleText():
void
Defined in: src/obsidian/augmentations/App.d.ts:199
Applies an obfuscation font to all text characters in the vault
Returns
void
getAccentColor()
getAccentColor():
string
Defined in: src/obsidian/augmentations/App.d.ts:205
Get the accent color of the application
Returns
string
getAppTitle()
getAppTitle():
string
Defined in: src/obsidian/augmentations/App.d.ts:211
Get the current title of the application
Returns
string
getObsidianUrl()
getObsidianUrl(
file
):string
Defined in: src/obsidian/augmentations/App.d.ts:215
Get the URI for opening specified file in Obsidian
Parameters
file
Returns
string
getSpellcheckLanguages()
getSpellcheckLanguages():
string
[]
Defined in: src/obsidian/augmentations/App.d.ts:222
Get currently active spellcheck languages
Returns
string
[]
getTheme()
getTheme():
"obsidian"
|"moonstone"
Defined in: src/obsidian/augmentations/App.d.ts:228
Get the current color scheme of the application
Returns
"obsidian"
| "moonstone"
importAttachments()
importAttachments(
imports
,folder
):Promise
<void
>
Defined in: src/obsidian/augmentations/App.d.ts:232
Import attachments into specified folder
Parameters
imports
folder
null
| TFolder
Returns
Promise
<void
>
isVimEnabled()
isVimEnabled():
boolean
Defined in: src/obsidian/augmentations/App.d.ts:235
Returns
boolean
loadLocalStorage()
loadLocalStorage(
key
):unknown
Defined in: src/obsidian/augmentations/App.d.ts:243
Load a value from the localstorage given key
Parameters
key
string
Key of value to load
Returns
unknown
on()
on():
void
Defined in: src/obsidian/augmentations/App.d.ts:250
Returns
void
openHelp()
openHelp():
void
Defined in: src/obsidian/augmentations/App.d.ts:256
Open the help vault (or site if mobile)
Returns
void
openVaultChooser()
openVaultChooser():
void
Defined in: src/obsidian/augmentations/App.d.ts:260
Open the vault picker
Returns
void
openWithDefaultApp()
openWithDefaultApp(
path
):void
Defined in: src/obsidian/augmentations/App.d.ts:264
Open the file with OS defined default file browser application
Parameters
path
string
Returns
void
saveLocalStorage()
saveLocalStorage(
key
,value
):void
Defined in: src/obsidian/augmentations/App.d.ts:279
Save a value to the localstorage given key
Parameters
key
string
Key of value to save
value
unknown
Value to save
Returns
void
setAccentColor()
setAccentColor(
color
):void
Defined in: src/obsidian/augmentations/App.d.ts:285
Set the accent color of the application
Parameters
color
string
Returns
void
setAttachmentFolder()
setAttachmentFolder(
path
):void
Defined in: src/obsidian/augmentations/App.d.ts:289
Set the path where attachments should be stored
Parameters
path
string
Returns
void
setSpellcheckLanguages()
setSpellcheckLanguages(
languages
):void
Defined in: src/obsidian/augmentations/App.d.ts:293
Set the spellcheck languages
Parameters
languages
string
[]
Returns
void
setTheme()
setTheme(
theme
):void
Defined in: src/obsidian/augmentations/App.d.ts:297
Set the current color scheme of the application and reload the CSS
Parameters
theme
"obsidian"
| "moonstone"
Returns
void
showInFolder()
showInFolder(
path
):void
Defined in: src/obsidian/augmentations/App.d.ts:301
Open the OS file picker at path location
Parameters
path
string
Returns
void
showReleaseNotes()
showReleaseNotes(
version
?):void
Defined in: src/obsidian/augmentations/App.d.ts:307
Show the release notes for provided version as a new leaf
Parameters
version?
string
Version to show release notes for (defaults to current version)
Returns
void
updateAccentColor()
updateAccentColor():
void
Defined in: src/obsidian/augmentations/App.d.ts:311
Updates the accent color and reloads the CSS
Returns
void
updateFontFamily()
updateFontFamily():
void
Defined in: src/obsidian/augmentations/App.d.ts:315
Update the font family of the application and reloads the CSS
Returns
void
updateFontSize()
updateFontSize():
void
Defined in: src/obsidian/augmentations/App.d.ts:319
Update the font size of the application and reloads the CSS
Returns
void
updateInlineTitleDisplay()
updateInlineTitleDisplay():
void
Defined in: src/obsidian/augmentations/App.d.ts:323
Update the inline title rendering in notes
Returns
void
updateRibbonDisplay()
updateRibbonDisplay():
void
Defined in: src/obsidian/augmentations/App.d.ts:324
Returns
void
updateTheme()
updateTheme():
void
Defined in: src/obsidian/augmentations/App.d.ts:328
Update the color scheme of the application and reloads the CSS
Returns
void
updateViewHeaderDisplay()
updateViewHeaderDisplay():
void
Defined in: src/obsidian/augmentations/App.d.ts:332
Update the view header display in notes
Returns
void