Execute Commands from Other Plugins #363
Replies: 4 comments 1 reply
-
Ahhh I forgot how to do this. It was on Discord. Something by the name of |
Beta Was this translation helpful? Give feedback.
-
Any suggestions here? |
Beta Was this translation helpful? Give feedback.
-
I use this in a dataviewjs block to call my user functions from templater, perhaps this could get you going in the right direction. let tpl = this.app.plugins.plugins['templater-obsidian'].templater; |
Beta Was this translation helpful? Give feedback.
-
for anyone finding this in the future: the javascript function is to get the ID of a command you need to open the dev tools console with the ID of a command is not a number, it is a string, e.g. |
Beta Was this translation helpful? Give feedback.
-
Is there a syntax to execute a command from another Obsidian plugin as part of a template?
Use case:
I would like a template that creates a new file after requesting a title and a URL. I would like to call the "Extract URL Content" plugin using the requested URL.
Current template looks like this:
I'd like to set the body below the YAML to be the extract URL results. This plugin can work with selected URLs or with URLs on the clipboard. I'm fine with switching up the logic to not request a URL and instead to just use the clipboard contents. I have been unable to figure out how to use Templater to get the results from another plugin and insert those results in the document.
Beta Was this translation helpful? Give feedback.
All reactions