From 18bda6d68443f2d582cc23b1521878d10ba71ef7 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Thu, 11 Jul 2024 16:28:21 +0000 Subject: [PATCH] chore(docs): auto generate docs --- doc/obsidian.txt | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/doc/obsidian.txt b/doc/obsidian.txt index 92d7fbadb..b91ff4596 100644 --- a/doc/obsidian.txt +++ b/doc/obsidian.txt @@ -115,6 +115,9 @@ COMMANDS *obsidian-commands* first by appending "–dry-run" to the command, e.g. `:ObsidianRename new-id --dry-run`. - `:ObsidianToggleCheckbox` to cycle through checkbox options. +- `:ObsidianNewFromTemplate [PATH] [TEMPLATE]` to create a new note from a + template in the templates folder. Selecting from a list using your preferred + picker. This command has one optional argument: the path to the new note. - `:ObsidianTOC` to load the table of contents of the current note into a picker list. @@ -747,13 +750,15 @@ different key: USING TEMPLATES *obsidian-using-templates* -To insert a template, run the command `:ObsidianTemplate`. This will open a -list of available templates in your templates folder with your preferred -picker. Select a template and hit `` to insert. Substitutions for `{{id}}`, -`{{title}}`, `{{path}}`, `{{date}}`, and `{{time}}` are supported -out-of-the-box. - -For example, with the following configuration +To insert a template in the current note, run the command `:ObsidianTemplate`. +This will open a list of available templates in your templates folder with your +preferred picker. Select a template and hit `` to insert. To create a new +note from a template, run the command `:ObsidianNewFromTemplate`. This will +prompt you for an optional path for the new note and will open a list of +available templates in your templates folder with your preferred picker. Select +a template and hit `` to create the new note with the selected template. +Substitutions for `{{id}}`, `{{title}}`, `{{path}}`, `{{date}}`, and `{{time}}` +are supported out-of-the-box. For example, with the following configuration >lua {