iOS Shortcut - insert at the end of a specific section

What I’m trying to do

I have a shortcuts set up and mostly working as needed.
I have one that is successfully adding an input to the end of a daily note.
I have one that is successfully copying the input to the clipboard and opening the daily note with the correct section in focus (##tasks). I can then paste.

What I’m trying to do is add the captured input directly to the end of a specific section of the daily note.

Things I have tried

The opening in the correct section is working by opening the url:

obsidian://open?vault=myVault&file={formatteddate}%23tasks

The writing to the end of the daily notes file is using append text to vault with a `formatteddate.md` file path.

Any help or links appreciated.

It’s been a long time since I fiddled with these but I seem to remember the Shortcuts way of append will place to the end of the file.

And seeing as you are using the default Obsidian URI, I can recommend the Advanced URI plugin that will probably give you more leverage. You’ll need to look around in Readme/Docs and maybe even in Issues where relevant info may be picked up.

1 Like

Thanks @Sunnaq445.

I’ve seen that plugin mentioned a few times.
I’ll check it out and report back.
I’m hoping to keep my plugin use to the essentials only but if it solves the problem it’ll be worthwhile.

Thanks again for the tip @Sunnaq445.

Just in case anyone stumbles across this trying to do something similar, I’ll post the outcome…

Shortcut link: it wouldn’t let me post the link.

The shortcut is a little crude, but it serves its purpose for now. Feel free to offer suggestions for improving it.
If you want to use it, the only change that should be needed for the shortcut is, your vault name.
The shortcut handles spaces in the name.

You’ll need the advanced URI plugin installed, the daily note to exist in yyyy-MM-dd format, with headings of ## Tasks and ## Notes.

It’s a nice way (for me) to capture notes or tasks quickly via either dictation or text. The pattern has the potential to be quite extensible.

https://www.icloud.com/shortcuts/5b66b22616af427eae277b953c8cf6fe

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.