Skip to content

Commit 570c16b

Browse files
committed
docs(DOCS.md): update examples format on org_capture_templates
1 parent 10f99e9 commit 570c16b

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

DOCS.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,41 @@ Variables:
360360
* `%(EXP)`: Runs the given lua code and inserts the result
361361

362362
Example:<br />
363-
`{ T = { description = 'Todo', template = '* TODO %?\n %u', target = '~/org/todo.org' } }`
363+
```lua
364+
{ T = {
365+
description = 'Todo',
366+
template = '* TODO %?\n %u',
367+
target = '~/org/todo.org'
368+
} }
369+
```
364370

365371
Journal example:<br />
366-
`{ j = { description = 'Journal', template = '\n*** %<%Y-%m-%d> %<%A>\n**** %U\n\n%?', target = '~/sync/org/journal.org' } }`
372+
```lua
373+
{ j = {
374+
description = 'Journal',
375+
template = '\n*** %<%Y-%m-%d> %<%A>\n**** %U\n\n%?',
376+
target = '~/sync/org/journal.org'
377+
} }
378+
```
367379

368380
Nested key example:<br />
369-
- `{ e = 'Event' }`
370-
- `{ er = { description = 'recurring', template = '** %?\n %T', target = '~/org/calendar.org', headline = 'recurring' } }`
371-
- `{ eo = { description = 'one-time', template = '** %?\n %T', target = '~/org/calendar.org', headline = 'one-time' } }`
381+
```lua
382+
{
383+
e = 'Event',
384+
er = {
385+
description = 'recurring',
386+
template = '** %?\n %T',
387+
target = '~/org/calendar.org',
388+
headline = 'recurring'
389+
},
390+
eo = {
391+
description = 'one-time',
392+
template = '** %?\n %T',
393+
target = '~/org/calendar.org',
394+
headline = 'one-time'
395+
}
396+
}
397+
```
372398

373399
#### **org_agenda_min_height**
374400
*type*: `number`<br />

0 commit comments

Comments
 (0)