chhoumann / quickadd

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

default value #569

Open miromannino opened 11 months ago

miromannino commented 11 months ago

Added the option to add default values in case none is given in the prompt.

For example {{value:MyVariable|SomeValue}}

Will be "SomeValue" if nothing is given in the prompt.

This should solve #264, with a different syntax. My idea is having something similar to other languages that short-circuit evaluation for OR. For example in Js console.log(MyVariable||"SomeValue") prints "SomeValue" if MyVariable is undefined.

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quickadd ✅ Ready (Inspect) Visit Preview Sep 13, 2023 2:20pm