Skip to content

Commit 9bdb4a7

Browse files
Merge pull request #297 from jspmarc/master
Improve readability on DOCS.md
2 parents 738f983 + ed1386a commit 9bdb4a7

File tree

1 file changed

+66
-40
lines changed

1 file changed

+66
-40
lines changed

DOCS.md

Lines changed: 66 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ When set to `false`, it is disabled.
215215
Possible values:
216216
* `native` - Includes whole latex syntax file into the org syntax. It can potentially cause some highlighting issues and slowness.
217217
* `entities` - Highlight latex only in these situations (see [Orgmode latex fragments](https://orgmode.org/manual/LaTeX-fragments.html#LaTeX-fragments)):
218-
* between `/begin` and `/end` delimiters
218+
* between `\begin` and `\end` delimiters
219219
* between `$` and `$` delimiters - example: `$a^2=b$`
220220
* between `$$` and `$$` delimiters - example: `$$ a=+\sqrt{2} $$`
221221
* between `\[` and `\]` delimiters - example: `\[ a=-\sqrt{2} \]`
@@ -345,9 +345,9 @@ Example:<br />
345345
default value: `{ t = { description = 'Task', template = '* TODO %?\n %u' } }`<br />
346346
Templates for capture/refile prompt.<br />
347347
Variables:
348-
- `%f`: Prints the file of the buffer capture was called from
349-
- `%F`: Like `%f` but inserts the full path
350-
- `%n`: Inserts the current `$USER`
348+
* `%f`: Prints the file of the buffer capture was called from
349+
* `%F`: Like `%f` but inserts the full path
350+
* `%n`: Inserts the current `$USER`
351351
* `%t`: Prints current date (Example: `<2021-06-10 Thu>`)
352352
* `%T`: Prints current date and time (Example: `<2021-06-10 Thu 12:30>`)
353353
* `%u`: Prints current date in inactive format (Example: `[2021-06-10 Thu]`)
@@ -357,18 +357,44 @@ Variables:
357357
* `%x`: Insert content of the clipboard via the "+" register (see :help clipboard)
358358
* `%?`: Default cursor position when template is opened
359359
* `%^{PROMPT|DEFAULT|COMPLETION...}`: Prompt for input, if completion is provided an :h inputlist will be used
360-
- `%(EXP)`: Runs the given lua code and inserts the result
360+
* `%(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 />
@@ -423,8 +449,8 @@ Example value: `{'agenda-archives'}`
423449
### Tags settings
424450

425451
#### **org_tags_column**
426-
*type*: `number`
427-
*default value*: `80`
452+
*type*: `number`<br />
453+
*default value*: `80`<br />
428454
The column to which tags should be indented in a headline.
429455
If this number is positive, it specifies the column.
430456
If it is negative, it means that the tags should be flushright to that column.
@@ -474,7 +500,7 @@ require('orgmode').setup({
474500
There are only 2 global mappings that are accessible from everywhere.
475501

476502
#### **org_agenda**
477-
*mapped to*: <kbd>\<Leader\>oa</kbd><br />
503+
*mapped to*: `<Leader\>oa`<br />
478504
Opens up agenda prompt.
479505

480506
#### **org_capture**
@@ -1010,35 +1036,35 @@ For adding/changing TODO keyword colors see [org-todo-keyword-faces](#org_todo_k
10101036
* The following highlight groups are based on _Treesitter_ query results, hence when setting up _Orgmode_ these
10111037
highlights must be enabled by removing `disable = {'org'}` from the default recommended _Treesitter_ configuration.
10121038

1013-
`OrgTSTimestampActive`: An active timestamp
1014-
`OrgTSTimestampInactive`: An inactive timestamp
1015-
`OrgTSBullet`: A normal bullet under a header item
1016-
`OrgTSPropertyDrawer`: Property drawer start/end delimiters
1017-
`OrgTSDrawer`: Drawer start/end delimiters
1018-
`OrgTSTag`: A tag for a headline item, shown on the righthand side like `:foo:`
1019-
`OrgTSPlan`: `SCHEDULED`, `DEADLINE`, `CLOSED`, etc. keywords
1020-
`OrgTSComment`: A comment block
1021-
`OrgTSLatex`: LaTeX block
1022-
`OrgTSDirective`: Blocks starting with `#+`
1023-
`OrgTSCheckbox`: The default checkbox highlight, overridden if any of the below groups are specified
1024-
`OrgTSCheckboxChecked`: A checkbox checked with either `[x]` or `[X]`
1025-
`OrgTSCheckboxHalfChecked`: A checkbox checked with `[-]`
1026-
`OrgTSCheckboxUnchecked`: A empty checkbox
1027-
`OrgTSHeadlineLevel1`: Headline at level 1
1028-
`OrgTSHeadlineLevel2`: Headline at level 2
1029-
`OrgTSHeadlineLevel3`: Headline at level 3
1030-
`OrgTSHeadlineLevel4`: Headline at level 4
1031-
`OrgTSHeadlineLevel5`: Headline at level 5
1032-
`OrgTSHeadlineLevel6`: Headline at level 6
1033-
`OrgTSHeadlineLevel7`: Headline at level 7
1034-
`OrgTSHeadlineLevel8`: Headline at level 8
1039+
* `OrgTSTimestampActive`: An active timestamp
1040+
* `OrgTSTimestampInactive`: An inactive timestamp
1041+
* `OrgTSBullet`: A normal bullet under a header item
1042+
* `OrgTSPropertyDrawer`: Property drawer start/end delimiters
1043+
* `OrgTSDrawer`: Drawer start/end delimiters
1044+
* `OrgTSTag`: A tag for a headline item, shown on the righthand side like `:foo:`
1045+
* `OrgTSPlan`: `SCHEDULED`, `DEADLINE`, `CLOSED`, etc. keywords
1046+
* `OrgTSComment`: A comment block
1047+
* `OrgTSLatex`: LaTeX block
1048+
* `OrgTSDirective`: Blocks starting with `#+`
1049+
* `OrgTSCheckbox`: The default checkbox highlight, overridden if any of the below groups are specified
1050+
* `OrgTSCheckboxChecked`: A checkbox checked with either `[x]` or `[X]`
1051+
* `OrgTSCheckboxHalfChecked`: A checkbox checked with `[-]`
1052+
* `OrgTSCheckboxUnchecked`: A empty checkbox
1053+
* `OrgTSHeadlineLevel1`: Headline at level 1
1054+
* `OrgTSHeadlineLevel2`: Headline at level 2
1055+
* `OrgTSHeadlineLevel3`: Headline at level 3
1056+
* `OrgTSHeadlineLevel4`: Headline at level 4
1057+
* `OrgTSHeadlineLevel5`: Headline at level 5
1058+
* `OrgTSHeadlineLevel6`: Headline at level 6
1059+
* `OrgTSHeadlineLevel7`: Headline at level 7
1060+
* `OrgTSHeadlineLevel8`: Headline at level 8
10351061

10361062
* The following use vanilla _Vim_ syntax matching, and will work without _Treesitter_ highlighting enabled.
10371063

1038-
`OrgEditSrcHighlight`: The highlight for the source content in an _Org_ buffer while it is being edited in an edit special buffer
1039-
`OrgAgendaDeadline`: A item deadline in the agenda view
1040-
`OrgAgendaScheduled`: A scheduled item in the agenda view
1041-
`OrgAgendaScheduledPast`: A item past its scheduled date in the agenda view
1064+
* `OrgEditSrcHighlight`: The highlight for the source content in an _Org_ buffer while it is being edited in an edit special buffer
1065+
* `OrgAgendaDeadline`: A item deadline in the agenda view
1066+
* `OrgAgendaScheduled`: A scheduled item in the agenda view
1067+
* `OrgAgendaScheduledPast`: A item past its scheduled date in the agenda view
10421068

10431069
## Advanced search
10441070
Part of [Advanced search](https://orgmode.org/worg/org-tutorials/advanced-searching.html) functionality
@@ -1214,7 +1240,7 @@ Agenda view mapping: `I`<br />
12141240
Start the clock by adding or updating the `:LOGBOOK:` drawer. Note that this clocks out any currently active clock.<br />
12151241
Also, agenda/todo/search view highlights item that is clocked in.
12161242
##### Clock out
1217-
Org file mapping: `<leader>oxi`<br />
1243+
Org file mapping: `<leader>oxo`<br />
12181244
Agenda view mapping: `O`<br />
12191245
Clock out the entry and update the `:LOGBOOK:` drawer, and also add a total tracked time.<br />
12201246
Note that in agenda view pressing `O` anywhere clocks the currently active entry, while in org file cursor must be in the headline subtree.

0 commit comments

Comments
 (0)