Skip to content

Commit 69474c7

Browse files
author
github-actions
committed
[docgen] Update docs
1 parent f2d7914 commit 69474c7

File tree

1 file changed

+64
-23
lines changed

1 file changed

+64
-23
lines changed

doc/orgmode_api.txt

Lines changed: 64 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,91 @@
1+
OrgApiRefileOpts *OrgApiRefileOpts*
2+
3+
Fields: ~
4+
{source} (OrgApiHeadline)
5+
{destination} (OrgApiFile|OrgApiHeadline)
6+
7+
8+
OrgApi *OrgApi*
9+
10+
111
OrgApi.load({name?}) *OrgApi.load*
212

313
Parameters: ~
414
{name?} (string|string[]) specific file names to return (absolute path). If ommitted, returns all loaded files
515

616
Returns: ~
7-
(OrgFile|OrgFile[])
17+
(OrgApiFile|OrgApiFile[])
818

919

1020
OrgApi.current() *OrgApi.current*
1121
Get current org buffer file
1222

1323
Returns: ~
14-
(OrgFile)
24+
(OrgApiFile)
25+
26+
27+
OrgApi.refile({opts}) *OrgApi.refile*
28+
Refile headline to another file or headline
29+
If executed from capture buffer, it will close the capture buffer
30+
31+
Parameters: ~
32+
{opts} (OrgApiRefileOpts)
33+
34+
Returns: ~
35+
(boolean)
1536

1637

17-
OrgFile *OrgFile*
38+
OrgApiFile *OrgApiFile*
1839

1940
Fields: ~
20-
{category} (string) current file category name. By default it's only filename without extension unless defined differently via #+CATEGORY directive
21-
{filename} (string) absolute path of the current file
22-
{headlines} (OrgHeadline[])
41+
{category} (string) current file category name. By default it's only filename without extension unless defined differently via #+CATEGORY directive
42+
{filename} (string) absolute path of the current file
43+
{headlines} (OrgApiHeadline[])
2344
{is_archive_file} (boolean)
2445

2546

2647
OrgFile:reload() *OrgFile:reload*
2748
Return refreshed instance of the file
2849

2950
Returns: ~
30-
(OrgFile)
51+
(OrgApiFile)
52+
53+
54+
OrgFile:get_closest_headline() *OrgFile:get_closest_headline*
55+
Return closest headline, or nil if there are no headlines found
56+
If cursor is not provided, it will use current cursor position
57+
@param cursor? { line: number, col: number } (1, 0)-indexed cursor position, same as returned from `vim.api.nvim_win_get_cursor(0)`
58+
@return OrgApiHeadline | nil
3159

3260

33-
OrgHeadline *OrgHeadline*
61+
OrgApiHeadline *OrgApiHeadline*
3462

3563
Fields: ~
36-
{title} (string) headline title without todo keyword, tags and priority. Ex. `* TODO I am a headline :SOMETAG:` returns `I am a headline`
37-
{line} (string) full headline line
38-
{level} (number) headline level (number of asterisks). Example: 1
39-
{todo_value?} (string) todo keyword of the headline (Example: TODO, DONE)
40-
{todo_type?} (string|)
64+
{title} (string) headline title without todo keyword, tags and priority. Ex. `* TODO I am a headline :SOMETAG:` returns `I am a headline`
65+
{line} (string) full headline line
66+
{level} (number) headline level (number of asterisks). Example: 1
67+
{todo_value?} (string) todo keyword of the headline (Example: TODO, DONE)
68+
{todo_type?} ("TODO"|"DONE"|"")
69+
{tags} (string[]) List of own tags
70+
{deadline} (OrgDate|nil)
71+
{scheduled} (OrgDate|nil)
72+
{properties} (table<string,string>) Table containing all properties. All keys are lowercased
73+
{closed} (OrgDate|nil)
74+
{dates} (OrgDate[]) List of all dates that are not "plan" dates
75+
{position} (OrgRange)
76+
{all_tags} (string[]) List of all tags (own + inherited)
77+
{file} (OrgApiFile)
78+
{parent} (OrgApiHeadline|nil)
79+
{priority} (string|nil)
80+
{is_archived} (boolean) headline marked with the `:ARCHIVE:` tag
81+
{headlines} (OrgApiHeadline[])
4182

4283

4384
OrgHeadline:reload() *OrgHeadline:reload*
4485
Return updated version of headline
4586

4687
Returns: ~
47-
(OrgHeadline)
88+
(OrgApiHeadline)
4889

4990

5091
OrgHeadline:set_tags({tags}) *OrgHeadline:set_tags*
@@ -54,21 +95,21 @@ OrgHeadline:set_tags({tags}) *OrgHeadline:set_tags*
5495
{tags} (string[])
5596

5697
Returns: ~
57-
(Promise)
98+
(OrgPromise)
5899

59100

60101
OrgHeadline:priority_up() *OrgHeadline:priority_up*
61102
Increase priority on a headline
62103

63104
Returns: ~
64-
(Promise)
105+
(OrgPromise)
65106

66107

67108
OrgHeadline:priority_down() *OrgHeadline:priority_down*
68109
Decrease priority on a headline
69110

70111
Returns: ~
71-
(Promise)
112+
(OrgPromise)
72113

73114

74115
OrgHeadline:set_priority({priority}) *OrgHeadline:set_priority*
@@ -78,27 +119,27 @@ OrgHeadline:set_priority({priority}) *OrgHeadline:set_priority*
78119
{priority} (string)
79120

80121
Returns: ~
81-
(Promise)
122+
(OrgPromise)
82123

83124

84125
OrgHeadline:set_deadline({date?}) *OrgHeadline:set_deadline*
85126
Set deadline date
86127

87128
Parameters: ~
88-
{date?} (Date|string|nil) If ommited, opens the datepicker. Empty string removes the date. String must follow org date convention (YYYY-MM-DD HH:mm...)
129+
{date?} (OrgDate|string|nil) If ommited, opens the datepicker. Empty string removes the date. String must follow org date convention (YYYY-MM-DD HH:mm...)
89130

90131
Returns: ~
91-
(Promise)
132+
(OrgPromise)
92133

93134

94135
OrgHeadline:set_scheduled({date?}) *OrgHeadline:set_scheduled*
95136
Set scheduled date
96137

97138
Parameters: ~
98-
{date?} (Date|string|nil) If ommited, opens the datepicker. Empty string removes the date. String must follow org date convention (YYYY-MM-DD HH:mm...)
139+
{date?} (OrgDate|string|nil) If ommited, opens the datepicker. Empty string removes the date. String must follow org date convention (YYYY-MM-DD HH:mm...)
99140

100141
Returns: ~
101-
(Promise)
142+
(OrgPromise)
102143

103144

104145
OrgHeadline:set_property({key}, {value}) *OrgHeadline:set_property*
@@ -137,7 +178,7 @@ OrgAgendaOptions *OrgAgendaOptions*
137178

138179
Fields: ~
139180
{filters?} (OrgAgendaFilter)
140-
{from?} (string|Date)
181+
{from?} (string|OrgDate)
141182
{span?} (number|"day"|"week"|"month"|"year")
142183

143184

0 commit comments

Comments
 (0)