**Describe the bug** <% tp.file.cursor() %> doesn't work when templating. **To Reproduce** Steps to reproduce the behavior: 1. create template macro `zettelkasten` with ↓ - template path = _template/zettelkasten - focus new pane = on 2. create a file `_template/zettelkasten` with ``` # <% tp.file.cursor() %> ``` 3. execute `QuickAdd: Run QuickAdd` -> `zettelkasten` from the command palette. **Expected behavior** A file with content `# ` is generated and the cursor position is on the right side of `# `. **Screenshots** If applicable, add screenshots to help explain your problem. https://user-images.githubusercontent.com/38106890/144574614-9bd873b0-e245-43dc-95da-0b3d7ad78780.mov **Desktop (please complete the following information):** - OS: macOS, Mac mini (M1, 2020) - Version: Big Sur (v11.6.1)
Describe the bug
<% tp.file.cursor() %> doesn't work when templating.
To Reproduce
Steps to reproduce the behavior:
zettelkastenwith ↓_template/zettelkastenwithQuickAdd: Run QuickAdd->zettelkastenfrom the command palette.Expected behavior
A file with content
#is generated and the cursor position is on the right side of#.Screenshots
If applicable, add screenshots to help explain your problem.
quickadd_template_bug.mov
Desktop (please complete the following information):