quickadd
quickadd copied to clipboard
[BUG] If 'Field' template string is enclosed in quotes in the template, the template string is included in the dropdown menu and crashes if selected.
Describe the bug If quotes are used around field names in QuickAdd templates, unexpected behavior occurs. Quotes around field names are important if frontmatter is to contain links, as un-quoted links in frontmatter will not be recognized by Obsidian.
To Reproduce Steps to reproduce the behavior:
- Create a template such as:
---
type: "{{FIELD:type}}"
---
- Create a Template choice in QuickAdd which uses that template
- Use the choice - when prompted for 'Enter value for type', the choice
{{FIELD:type}}will appear - Click
{{FIELD:type}}and Obsidian crashes.
Expected behavior
In step 4, {{FIELD:type}} should not be one of the choices. Furthermore, if it is one of the choices, in step 5, it should not crash Obsidian.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10 Enterprise