Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new file from template #1361

Open
dxcore35 opened this issue Apr 26, 2024 Discussed in #514 · 3 comments
Open

Create new file from template #1361

dxcore35 opened this issue Apr 26, 2024 Discussed in #514 · 3 comments
Labels
enhancement New feature or request

Comments

@dxcore35
Copy link

dxcore35 commented Apr 26, 2024

Discussed in #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!

@Zachatoo
Copy link
Collaborator

Zachatoo commented May 4, 2024

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

@Zachatoo Zachatoo added the enhancement New feature or request label May 4, 2024
@FeralFlora
Copy link

FeralFlora commented May 22, 2024

This would carry out both steps as a single action.

@dxcore35 Are you looking for the "Create new note from template" command? Sounds like that's what you need.

The discussion you linked to is from 2021, and the aforementioned command was implemented shortly thereafter.

@itribs
Copy link

itribs commented Aug 15, 2024

This would carry out both steps as a single action.

@dxcore35 Are you looking for the "Create new note from template" command? Sounds like that's what you need.

The discussion you linked to is from 2021, and the aforementioned command was implemented shortly thereafter.

I believe what he means is: When there is no active note, it is not possible to create a new file from a template using hotkey, just like in the screenshot that prompts: "No active editor, can't append templates.", which is also the feature I need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants