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

Add obsidian-apply-template interactive command #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LA-Toth
Copy link
Contributor

@LA-Toth LA-Toth commented Dec 12, 2023

Previously the daily notes command used obsidian-apply-template, but it is internal, so it gets the obsidian--apply-template.

For the interactive version, the original obsidian-apply-tempalte is used. It list the template files from the templates directory without extension, like Daily Note Template.
If an existing file name is chosen, it is applied, inserted to the beginning of the current buffer.

@LA-Toth LA-Toth mentioned this pull request Dec 12, 2023
@licht1stein
Copy link
Owner

@LA-Toth could you resolve the conflicts please

Previously the daily notes command used `obsidian-apply-template`,
but it is internal, so it gets the `obsidian--apply-template`.

For the interactive version, the original `obsidian-apply-tempalte`
is used. It list the template files from the templates directory
without extension, like `Daily Note Template`.
If an existing file name is chosen, it is applied, inserted
to the beginning of the current buffer.
@LA-Toth
Copy link
Contributor Author

LA-Toth commented Dec 18, 2023

@LA-Toth could you resolve the conflicts please

Done. I also changed one of the message calls to user-error (which indicates mistyped template name).

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

Successfully merging this pull request may close these issues.

None yet

2 participants