Next: Explansion, Up: Capture Templates [Index]
Each entry in org-capture-templates is a list with the following items:
the key(s) that select the template, as string characters (“a” to use a single key) (“bt” to use two keys).
When using several keys, keys using the same prefix key must be sequential in the list and preceded by a 2-element entry explaining the prefix key:
("b" "Templates for marking stuff to buy")
If you do not define a template for the C key, this key opens the Customize buffer for this complex variable.
A short string describing the template
The type of entry, a symbol.
entry
An Org mode node, with a headline. Will be filed as the child of the target entry or as a top-level entry. The target file should be an Org file.
item
A plain list item, placed in the first plain list at the target location. Again the target file should be an Org file.
checkitem
A checkbox item. This only differs from the plain list item by the default template.
table-line
A new line in the first table at the target location. Where exactly the line will be
inserted depends on the properties :prepend
and :table-line-pos
plain
Text to be inserted as it is.
Specification of where the captured item should be placed.
org-default-notes-file
.
org-directory
.
Valid values are:
(file "path/to/file")
Text will be placed at the beginning or end of that file.
(id "id of existing org entry")
Filing as child of this entry, or in the body of the entry.
(file+headline "filename" "node headline")
Fast configuration if the target heading is unique in the file.
(file+olp "filename" "Level 1 heading" "Level 2" ...)
For non-unique headings, the full path is safer.
(file+regexp "filename" "regexp to find location")
Use a regular expression to position point.
(file+olp+datetree "filename" [ "Level 1 heading" ...])
This target creates a heading in a date tree for today’s date. If the optional outline path is given, the tree will be built under the node it is pointing to, instead of at top level.
(file+function "filename" function-finding-location)
A function to find the right location in the file.
(clock)
File to the entry that is currently being clocked.
(function function-finding-location)
Most general way: write your own function which both visits the file and moves point to the right location.
Next: Explansion, Up: Capture Templates [Index]