quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

[BUG] `{{value}}` doesn't propagate through macros

Open chhoumann opened this issue 2 years ago • 4 comments

Describe the bug Title.

To Reproduce Create a macro with e.g. two template choices and use {{value}} in both.

Expected behavior {{value}} should be entered only once and


This would change the behavior. If anyone is against this, I'm open to suggestions / thoughts. :)

chhoumann avatar May 22 '23 16:05 chhoumann

Also considering just updating the docs to reflect the difference between {{value}} and {{value:name}}.

chhoumann avatar May 22 '23 16:05 chhoumann

I have a question that may be related. I've just finished integrating your amazing AI Youtube Summarizer and I see that although I see the variables being passed in the AI Template for safeTitle and title, I am prompted to insert them rather than seeing them propagated through the macros into my capture (template) choice.

Any help is greatly appreciated, and thanks again, other than the titles everything is working fantastic!

toph420 avatar May 25 '23 21:05 toph420

Hey @ducksfilms

I've heard some are having the same issue you are. It's weird because I don't experience it myself.

I imagine it's due to an error finding the video title. Can you try this?

https://twitter.com/jarnot/status/1660712634792943628?s=46&t=MWW71P3jTZGHf8sOJmYaUA

Would love to get it fixed!

chhoumann avatar May 26 '23 05:05 chhoumann

It works great! Thank you for the quick response, you rule.

I'll also mention that I have been using "Obsidian Scrapers" in my templates to get further information about each video (it uses the clipboard, so as long as the video url is copied it will work). See the attached image. I'm sure this can be done in the prompt template, but thought I'd share this cool additional functionality.

Screenshot 2023-05-26 at 9 56 13 AM

toph420 avatar May 26 '23 13:05 toph420