Skip to content

Commit

Permalink
Update logseq to handle multiple titles
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyatt committed Nov 11, 2023
1 parent 1407e16 commit adbe9bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ekg-logseq.el
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ of the note."
(goto-char (point-min))
(insert (org-element-interpret-data
(org-element-create 'headline
`(:level 1 :title ,(or (plist-get (ekg-note-properties note) :titled/title)
`(:level 1 :title ,(or (car (plist-get (ekg-note-properties note) :titled/title))
"Untitled Note")))))
;; Can't figure out how to get org-element to do this for me based off of
;; properties in the headline, so let's put the properties on here manually.
Expand All @@ -163,7 +163,7 @@ This will store the note text as markdown, regardless of the mode
of the note."
(with-temp-buffer
(insert "- "
(or (plist-get (ekg-note-properties note) :titled/title)
(or (car (plist-get (ekg-note-properties note) :titled/title))
"Untitled Note")
"\n "
(format "id:: %s\n ekg_hash:: %s\n "
Expand Down

0 comments on commit adbe9bf

Please sign in to comment.