What I’m trying to do
Adding bookmarks from Templater?
I’m starting to use Obsidian bookmarks and I can add them by hand. I have made bookmark “folders” where I store bookmarks. I bookmark notes by using the menu.
I would like to create a Templater Folder template that I’ll attach to a folder. I already have several such templates:
You can see, for example, that the template z/templates/templater/fldr-tmpl-computation.md will be applied to any note created inside my /computation folder.
I want to modify this template so as to create a bookmark in a Bookmarks folder named computation. The bookmark should have the name of whatever the template wants to call it, most probably the file name.
I can do this by hand, but I want the template to do it. Unfortunately I can’t figure out how to get it to do that.
I hope someone can make sense of my question and provide an answer. Thanks so much.
ge, chapel hill, nc
Things I have tried
Using a suggestion from Gemini, I tried adding this line to a note and using the command Templater: Replace templates in the active file to execute it:
= this.file.link(true, "bookmark-this", "foobar")
I get an error about not reading the bookmark or something (I can’t reproduce it).