@@ -37,6 +37,12 @@ OrgApi.refile({opts}) *OrgApi.refile*
37
37
38
38
OrgApi.insert_link() *OrgApi.insert_link*
39
39
Insert a link to a given location at the current cursor position
40
+
41
+ The expected format is
42
+ <protocol> :<location> ::<in_file_location>
43
+
44
+ If <in_file_location> is *<headline> , <headline> is used as prefilled description for the link.
45
+ If <protocol> is id, this format can also be used to pass a prefilled description.
40
46
@param link_location string
41
47
@return boolean
42
48
@@ -64,6 +70,19 @@ OrgFile:get_closest_headline() *OrgFile:get_closest_headline*
64
70
@return OrgApiHeadline | nil
65
71
66
72
73
+ OrgFile:get_link() *OrgFile:get_link*
74
+ Get a link destination as string
75
+
76
+ Depending if org_id_link_to_org_use_id is set the format is
77
+
78
+ id:<uuid> ::*title and the id is created if not existing
79
+ or
80
+ file:<filepath> ::*title
81
+
82
+ The result is meant to be used as link_location for OrgApi.insert_link.
83
+ @return string
84
+
85
+
67
86
OrgApiHeadline *OrgApiHeadline*
68
87
69
88
Fields: ~
@@ -172,6 +191,19 @@ OrgHeadline:id_get_or_create() *OrgHeadline:id_get_or_create*
172
191
@return string
173
192
174
193
194
+ OrgHeadline:get_link() *OrgHeadline:get_link*
195
+ Get a link destination as string
196
+
197
+ Depending if org_id_link_to_org_use_id is set the format is
198
+
199
+ id:<uuid> ::*title and the id is created if not existing
200
+ or
201
+ file:<filepath> ::*title
202
+
203
+ The result is meant to be used as link_location for OrgApi.insert_link.
204
+ @return string
205
+
206
+
175
207
OrgApiAgenda *OrgApiAgenda*
176
208
177
209
0 commit comments