mirror of
https://github.com/org-roam/org-roam
synced 2025-08-31 14:43:32 -05:00
Check if window-buffer is a file
This commit is contained in:
@@ -254,9 +254,10 @@ displaying information for the correct file."
|
||||
(with-current-buffer (window-buffer)
|
||||
(when (and (eq major-mode 'org-mode)
|
||||
(get-buffer org-roam-buffer)
|
||||
(not (string= org-roam-current-file-id (org-roam--get-id (file-truename (buffer-file-name (current-buffer))))))
|
||||
(member (file-truename (buffer-file-name (current-buffer))) (org-roam--find-all-files)))
|
||||
(org-roam-update (org-roam--get-id (buffer-file-name (current-buffer)))))))
|
||||
(buffer-file-name (window-buffer))
|
||||
(not (string= org-roam-current-file-id (org-roam--get-id (file-truename (buffer-file-name (window-buffer))))))
|
||||
(member (file-truename (buffer-file-name (window-buffer))) (org-roam--find-all-files)))
|
||||
(org-roam-update (org-roam--get-id (buffer-file-name (window-buffer)))))))
|
||||
|
||||
(defun org-roam-build-graph ()
|
||||
"Build graphviz graph output."
|
||||
|
Reference in New Issue
Block a user