You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCS.md
+52-16
Original file line number
Diff line number
Diff line change
@@ -412,6 +412,16 @@ Variables:
412
412
*`%^{PROMPT|DEFAULT|COMPLETION...}`: Prompt for input, if completion is provided an :h inputlist will be used
413
413
*`%(EXP)`: Runs the given lua code and inserts the result. NOTE: this will internally pass the content to the lua `load()` function. So the body inside `%()` should be the body of a function that returns a string.
414
414
415
+
Templates have the following fields:
416
+
*`description` (`string`) — description of the template that is displayed in the template selection menu
417
+
*`template` (`string|string[]`) — body of the template that will be used when creating capture
418
+
*`target` (`string?`) — name of the file to which the capture content will be added. If the target is not specified, the content will be added to the [`org_default_notes_file`](#orgdefaultnotesfile) file
419
+
*`headline` (`string?`) — title of the headline after which the capture content will be added. If no headline is specified, the content will be appended to the end of the file
420
+
*`properties` (`table?`):
421
+
*`empty_lines` (`table|number?`) — if the value is a number, then empty lines are added before and after the content. If the value is a table, then the following fields are expected:
422
+
*`before` (`integer?`) — add empty lines to the beginning of the content
423
+
*`after` (`integer?`) — add empty lines to the end of the content
0 commit comments