Vinzent03 / obsidian-advanced-uri

Advanced modes for Obsidian URI
MIT License
765 stars 44 forks source link

Appending Data to File Opened via Command ID #176

Closed StuStirling closed 3 months ago

StuStirling commented 5 months ago

I'm using the periodic notes plugin and I want to append some text to the "Monthly" note rather than the daily.

I can get it to open via command but it is not appending my text.

Here is the URL I'm using:

obsidian://advanced-uri?vault={var:vault_name}&commandid=periodic-notes%253Aopen-monthly-note&mode=append&data={query}

I have also tried specifying the file path alongisde the command ID but that doesn't work. However, removing the command ID and specifying the file path does work.

For now, I'm just bypassing the plugin and using the following URI:

obsidian://advanced-uri?vault={var:vault_name}&filepath=Monthly%2F{var:file_date}&mode=append&data={query}
Vinzent03 commented 3 months ago

I don't plan to have those two features on the same uri. Please use two dedicated uris for this, or use another workaround like you presented.