Fix org-roam hooks not being attached on nested files (#82)

master
Jethro Kuan 6 years ago committed by GitHub
parent 684ab67952
commit 01130b49e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      org-roam.el

@ -152,8 +152,8 @@ If called interactively, then PARENTS is non-nil."
(defun org-roam--org-roam-file-p ()
"Return t if file is part of org-roam system, false otherwise."
(and (buffer-file-name (current-buffer))
(f-child-of-p (file-truename (buffer-file-name (current-buffer)))
org-roam-directory)))
(f-descendant-of-p (file-truename (buffer-file-name (current-buffer)))
org-roam-directory)))
(defun org-roam--get-title-from-cache (file)
"Return title of `FILE' from the cache."

Loading…
Cancel
Save