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: doc/orgmode.txt
+52-16
Original file line number
Diff line number
Diff line change
@@ -621,6 +621,16 @@ Variables:
621
621
* `%^{PROMPT|DEFAULT|COMPLETION...}`: Prompt for input, if completion is provided an :h inputlist will be used
622
622
* `%(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.
623
623
624
+
Templates have the following fields:
625
+
* `description` (`string`) — description of the template that is displayed in the template selection menu
626
+
* `template` (`string|string[]`) — body of the template that will be used when creating capture
627
+
* `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
628
+
* `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
629
+
* `properties` (`table?`):
630
+
* `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:
631
+
* `before` (`integer?`) — add empty lines to the beginning of the content
632
+
* `after` (`integer?`) — add empty lines to the end of the content
0 commit comments