Templater icon indicating copy to clipboard operation
Templater copied to clipboard

Create new file from template

Open dxcore35 opened this issue 2 months ago • 2 comments

Discussed in https://github.com/SilentVoid13/Templater/discussions/514

Originally posted by Ampa April 3, 2021 At present we can create a new file, and then as a second step insert a template.

Would you consider a new action: Create new from template?

This would carry out both steps as a single action.

It is 2024 and it still does'nt work.

My settings:

Screenshot 2024-04-26 at 16 13 22

When there is no active note in Obsidian and i will trigger the hotkey im getting this:

Screenshot 2024-04-26 at 16 09 12

And this is the template:

Screenshot 2024-04-26 at 16 15 18

There is no append command in the code!

dxcore35 avatar Apr 26 '24 13:04 dxcore35

You can achieve the desired result by using tp.file.create_new in your template to create a new file.

Zachatoo avatar May 04 '24 21:05 Zachatoo