quickadd icon indicating copy to clipboard operation
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.

Open JosefTaylor opened this issue 1 year ago • 0 comments

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:

  1. Create a template such as:
---
type: "{{FIELD:type}}"
---
  1. Create a Template choice in QuickAdd which uses that template
  2. Use the choice - when prompted for 'Enter value for type', the choice {{FIELD:type}} will appear
  3. 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 image

Desktop (please complete the following information):

  • OS: Windows 10 Enterprise

JosefTaylor avatar Feb 19 '24 16:02 JosefTaylor