@@ -39,15 +39,6 @@ obsidian.SearchOpts
39
39
Return ~
40
40
obsidian.SearchOpts
41
41
42
- ------------------------------------------------------------------------------
43
- Class ~
44
- {obsidian.TagLocation}
45
-
46
- Fields ~
47
- {tag} `(string )`
48
- {path} `(string |Path)`
49
- {line} `(integer)`
50
-
51
42
------------------------------------------------------------------------------
52
43
*obsidian.Client*
53
44
`Client`
@@ -187,7 +178,7 @@ An async version of `find_notes()` that runs the callback with an array of all m
187
178
Parameters ~
188
179
{term} `(string )` The term to search for
189
180
{opts} `(obsidian.SearchOpts|boolean |?)` search options or a boolean indicating if sorting should be used
190
- {callback} `(function )` ( obsidian.Note[]) -> nil
181
+ {callback} `(fun(notes: obsidian.Note[]))`
191
182
192
183
------------------------------------------------------------------------------
193
184
*obsidian.Client.find_files()*
@@ -210,7 +201,7 @@ An async version of `find_files`.
210
201
Parameters ~
211
202
{term} `(string )` The search term.
212
203
{opts} `(obsidian.SearchOpts|boolean |?)` Search options or a boolean indicating if sorting should be done
213
- {callback} `(function )` ( Path[]) -> nil
204
+ {callback} `(fun(paths: Path[]))`
214
205
215
206
------------------------------------------------------------------------------
216
207
*obsidian.Client.resolve_note()*
@@ -231,19 +222,32 @@ An async version of `resolve_note()`.
231
222
232
223
Parameters ~
233
224
{query} `(string )`
234
- {callback} `(function ( obsidian.Note|?))`
225
+ {callback} `(fun(note: obsidian.Note|?))`
235
226
236
227
Return ~
237
228
obsidian.Note| `(optional)`
238
229
230
+ ------------------------------------------------------------------------------
231
+ Class ~
232
+ {obsidian.TagLocation}
233
+
234
+ Fields ~
235
+ {tag} `(string )` The tag found.
236
+ {note} obsidian.Note The note instance where the tag was found.
237
+ {path} `(string |Path)` The path to the note where the tag was found.
238
+ {line} `(integer)` The line number (1-indexed) where the tag was found.
239
+ {text} `(string )` The text (with whitespace stripped) of the line where the tag was found.
240
+ {tag_start} `(integer|?)` The index within 'text' where the tag starts.
241
+ {tag_end} `(integer|?)` The index within 'text' where the tag ends.
242
+
239
243
------------------------------------------------------------------------------
240
244
*obsidian.Client.find_tags()*
241
245
`Client.find_tags` ({self} , {term} , {opts} , {timeout} )
242
- Find all tags starting with the given term.
246
+ Find all tags starting with the given term(s) .
243
247
244
248
Parameters ~
245
- {term} `(string )`
246
- {opts} `(obsidian.SearchOpts|table| boolean |?)` search options or a boolean indicating if sorting should be used
249
+ {term} `(string | string [] )`
250
+ {opts} `(obsidian.SearchOpts|boolean |?)` search options or a boolean indicating if sorting should be used
247
251
{timeout} `(integer|?)`
248
252
249
253
Return ~
@@ -255,18 +259,18 @@ obsidian.TagLocation[]
255
259
An async version of 'find_tags()'.
256
260
257
261
Parameters ~
258
- {term} `(string )`
259
- {opts} `(obsidian.SearchOpts|table| boolean |?)` search options or a boolean indicating if sorting should be used
260
- {callback} `(function ( obsidian.TagLocation[]))` -> nil
262
+ {term} `(string | string [] )`
263
+ {opts} `(obsidian.SearchOpts|boolean |?)` search options or a boolean indicating if sorting should be used
264
+ {callback} `(fun(tags: obsidian.TagLocation[]))`
261
265
262
266
------------------------------------------------------------------------------
263
267
*obsidian.Client.apply_async()*
264
268
`Client.apply_async` ({self} , {on_note}, {on_done}, {timeout} )
265
269
Apply a function over all notes in the current vault.
266
270
267
271
Parameters ~
268
- {on_note} `(function )` ( obsidian.Note,) -> nil
269
- {on_done} `(function )` () -> nil
272
+ {on_note} `(fun(note: obsidian.Note))`
273
+ {on_done} `(fun ())`
270
274
{timeout} `(integer|?)` Timeout in milliseconds.
271
275
272
276
------------------------------------------------------------------------------
@@ -275,8 +279,8 @@ Parameters ~
275
279
Like apply, but the callback takes a path instead of a note instance.
276
280
277
281
Parameters ~
278
- {on_path} `(function )` ( string,) -> nil
279
- {on_done} `(function )` () -> nil
282
+ {on_path} `(fun(path: string))`
283
+ {on_done} `(fun ())`
280
284
{timeout} `(integer|?)` Timeout in milliseconds.
281
285
282
286
------------------------------------------------------------------------------
0 commit comments