chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.43k stars 134 forks source link

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

Open chhoumann opened 1 year ago

chhoumann commented 1 year ago

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 commented 1 year ago

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

toph420 commented 1 year ago

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!

chhoumann commented 1 year ago

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!

toph420 commented 1 year ago

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