Skip to content

[BUG] <% tp.file.cursor() %> doesn't work. #149

@qawatake

Description

@qawatake

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() %>
  1. 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.

quickadd_template_bug.mov

Desktop (please complete the following information):

  • OS: macOS, Mac mini (M1, 2020)
  • Version: Big Sur (v11.6.1)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions