(minor)db: filename title sans-extension (#1952)

Use the file name without extension when no TITLE is specified.
This commit is contained in:
Jethro Kuan
2021-11-09 14:15:58 +08:00
committed by GitHub
parent d26047e6f7
commit 239929045f

View File

@ -382,7 +382,8 @@ INFO is the org-element parsed buffer."
(title (org-link-display-format
(or (cadr (assoc "TITLE" (org-collect-keywords '("title"))
#'string-equal))
(file-relative-name file org-roam-directory))))
(file-name-sans-extension
(file-relative-name file org-roam-directory)))))
(pos (point))
(todo nil)
(priority nil)