(bugfix): fix missed org-roam-link-title-format uses (#268)
In #261 we allowed org-roam-link-title-format to be a function, but missed some of its uses during the update. h.t. @alanz
This commit is contained in:
parent
8a3945945b
commit
f5d5b83b49
1 changed files with 2 additions and 2 deletions
|
@ -1250,10 +1250,10 @@ Otherwise, behave as if called interactively."
|
|||
(path (file-truename file))
|
||||
(new-path (file-truename new-file))
|
||||
(slug (org-roam--get-title-or-slug file))
|
||||
(old-title (format org-roam-link-title-format slug))
|
||||
(old-title (org-roam--format-link-title slug))
|
||||
(new-slug (or (car (org-roam--db-get-titles path))
|
||||
(org-roam--path-to-slug new-path)))
|
||||
(new-title (format org-roam-link-title-format new-slug)))
|
||||
(new-title (org-roam--format-link-title new-slug)))
|
||||
(org-roam--db-clear-file file)
|
||||
(dolist (file-from files-to-rename)
|
||||
(let* ((file-from (car file-from))
|
||||
|
|
Loading…
Reference in a new issue