Replies: 4 comments 2 replies
-
|
You can execute any Obsidian command with JavaScript, which Templater supports. I can't test it right now, but going from memory it's something like: Which is an object where you can find the various Obsidian commands - and execute them. Besides this, I'd have to know the entire workflow to help further😁 |
Beta Was this translation helpful? Give feedback.
-
|
Hi @chhoumann , @FelipeRearden , |
Beta Was this translation helpful? Give feedback.
-
|
It took me longer than I expected, but I managed to test adding "capture triggers" in my templates, and it works exactly as described by @chhoumann and @FelipeRearden . Ultimately I just added a line that looks like this: await app.commands.executeCommandById('quickadd:choice:70010db8-1d85-47d3-bc4f-b3151fa721f3')The only problem I encountered is that I could not access the link provided above by @FelipeRearden to a discord channel (to be honest I did not insist much). I still could retrieve the command ID using the trick provided by the To summarize, if you have the plugin installed (or vim features enabled in settings, I am not sure), just issue a command exactly like in For QuickAdd custom commands, it can be a little tricky if you have a lot of them (God knows that I do !) because they are named using UUIDs, not the arbitrary capture name, so it mlght require a little trial and error to identify the correct one. As always in life, there is an upside to that naming style; you do not have to go over all your references to a command if you simply rename it. Thanks a lot guys for answering me so quickly, your help is greatly appreciated 👍 |
Beta Was this translation helpful? Give feedback.
-
|
Hello @lyndhurst
This is the script that I was talking about: I wish you a fantastic day! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I read about macros, format syntax and the quickadd api, but I am not sure I found what I was looking for.
I would simply like to "automagically" trigger a QuickAdd capture at the end of a Templater's template execution.
Does anyone know how to achieve this ?
Beta Was this translation helpful? Give feedback.
All reactions