(feat):support multi-line org titles (#2264)

Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
This commit is contained in:
Felix Brendel
2022-12-02 09:16:11 +01:00
committed by GitHub
parent c2e852e102
commit 05f67901c6
3 changed files with 25 additions and 1 deletions

View File

@ -346,7 +346,7 @@ If FILE is nil, clear the current buffer."
If there is no title, return the file name relative to
`org-roam-directory'."
(org-link-display-format
(or (cadr (assoc "TITLE" (org-collect-keywords '("title"))))
(or (string-join (cdr (assoc "TITLE" (org-collect-keywords '("title")))) " ")
(file-name-sans-extension (file-relative-name
(buffer-file-name (buffer-base-buffer))
org-roam-directory)))))