I’m using the Image Inserter plugin and Templater. I’ll often find a note with no front matter and win a template to add my front matter. I’d like when the template runs, to run a command that is in the command palette - specifically Image Inserter: Insert Image in Frontmatter.
Things I have tried
Searched this forum and online in general. There’s some talk of using Advanced URI, but I can’t make sense of how that would work in this case, and it seems like there must be a simpler way.
and just use whichever command you need instead of toggle fold. You can find the list of commands by looking at the app.commands object in the console.
---
true
creation date: 2023-07-26 18:09
tags: 2023 tag1 tag2
Aliases:
- name of the file when template was run
banner: "https://images.unsplash.com/photo-1582034438152-77bc94ffa6ae?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzNjAwOTd8MHwxfHNlYXJjaHwxNHx8aGlzdG9yeXxlbnwwfDB8fHwxNjkyMDI1MTQyfDA&ixlib=rb-4.0.3&q=80&w=1080"
---
The Image Inserter leaves that true at the top of the front matter, and although it doesn’t really make a difference, I do want to figure out how to prevent it or get rid of it eventually. If there’s some obvious thing, let me know but otherwise I will come back to this in the future…