Function: org-roam-db--file-title

org-roam-db--file-title is a byte-compiled function defined in org-roam-db.el.

Signature

(org-roam-db--file-title)

Documentation

In current Org buffer, get the title.

If there is no title, return the file name relative to org-roam-directory.

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-db.el
;;;; Updating tables

(defun org-roam-db--file-title ()
  "In current Org buffer, get the title.
If there is no title, return the file name relative to
`org-roam-directory'."
  (org-link-display-format
   (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)))))