Things I have tried
The following are the Obsidian URIs I’ve tried (using Obsidian Advanced URI):
-
obsidian://advanced-uri?vault=<vault_name>&commandname=Starred%3A%20Star%2Funstar%20current%20file&filepath=<file_path>
- errors since the file already exists -
obsidian://advanced-uri?vault=<vault_name>&commandname=Starred%3A%20Star%2Funstar%20current%20file&filepath=<file_path>&mode=overwrite
- wipes the file -
obsidian://advanced-uri?vault=<vault_name>&commandname=Starred%3A%20Star%2Funstar%20current%20file&filepath=<file_path>&mode=append
- adds an empty line at the end of the file -
obsidian://advanced-uri?vault=<vault_name>&commandname=Starred%3A%20Star%2Funstar%20current%20file&filepath=<file_path>&mode=prepend
- adds an empty line at the beginning of the file
What I’m trying to do
Star/Unstar an existing note via Obsidian URIs, without editing the note at all