Skip to main content

Writing

caution

Make sure your values are properly encoded

info

The data parameter can be replaced with clipboard=true to get the content from the clipboard.

/parametersexplanation
write<identification>, dataOnly writes data to the file if the file is not already present
overwrite<identification>, data, mode=overwriteWrites data to filepath even if the file already exists
append<identification>, data, mode=appendOnly appends data to the file
prepend<identification>, data, mode=prependOnly prepends data to the file
newfilepath, data, mode=newDefinitely creates a new file. If filepath already exists, an incrementing number is appended
Example

Write "Hello World" to "my-file.md":

obsidian://advanced-uri?vault=<your-vault>&filepath=my-file&data=Hello%2520World

Overwrite "This text is overwritten" to "my-file.md":

obsidian://advanced-uri?vault=<your-vault>&filepath=my-file&data=This%2520text%2520is%2520overwritten&mode=overwrite

Append "Hello World" to today's daily note:

obsidian://advanced-uri?vault=<your-vault>&daily=true&data=Hello%2520World&mode=append

Append content from the clipboard to today's daily note:

obsidian://advanced-uri?vault=<your-vault>&daily=true&clipboard=true&mode=append
info

You may use the heading or line parameter to append and prepend data to a heading or line. More information in Navigation