@@ -227,6 +227,14 @@ Parameters ~
227
227
Return ~
228
228
obsidian.Note| `(optional)`
229
229
230
+ ------------------------------------------------------------------------------
231
+ *obsidian.Client.current_note()*
232
+ `Client.current_note` ({self} )
233
+ Get the current note.
234
+
235
+ Return ~
236
+ obsidian.Note| `(optional)`
237
+
230
238
------------------------------------------------------------------------------
231
239
Class ~
232
240
{obsidian.TagLocation}
@@ -469,6 +477,15 @@ Add a tag to the note.
469
477
Parameters ~
470
478
{tag} `(string )`
471
479
480
+ ------------------------------------------------------------------------------
481
+ *obsidian.Note.add_field()*
482
+ `Note.add_field` ({self} , {key} , {value} )
483
+ Add or update a field in the frontmatter.
484
+
485
+ Parameters ~
486
+ {key} `(string )`
487
+ {value} `(any)`
488
+
472
489
------------------------------------------------------------------------------
473
490
*obsidian.Note.from_file()*
474
491
`Note.from_file` ({path} , {root} )
@@ -560,13 +577,25 @@ Return ~
560
577
------------------------------------------------------------------------------
561
578
*obsidian.Note.save()*
562
579
`Note.save` ({self} , {path} , {insert_frontmatter}, {frontmatter} )
563
- Save note to file.
580
+ Save note to file. This only updates the frontmatter and header, leaving the rest of the contents unchanged.
564
581
565
582
Parameters ~
566
583
{path} `(string |Path|?)`
567
584
{insert_frontmatter} `(boolean |?)`
568
585
{frontmatter} `(table|?)`
569
586
587
+ ------------------------------------------------------------------------------
588
+ *obsidian.Note.save_to_buffer()*
589
+ `Note.save_to_buffer` ({self} , {bufnr} , {frontmatter} )
590
+ Save frontmatter to the given buffer.
591
+
592
+ Parameters ~
593
+ {bufnr} `(integer|?)`
594
+ {frontmatter} `(table|?)`
595
+
596
+ Return ~
597
+ `(boolean )` updated True if the buffer lines were updated, false otherwise.
598
+
570
599
------------------------------------------------------------------------------
571
600
*obsidian.Workspace*
572
601
`Workspace`
0 commit comments