summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index 17059fe..83a5382 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -577,13 +577,16 @@ from all other links."
(expand-file-name org-roam-dailies-directory)
(expand-file-name
org-roam-dailies-directory
- org-roam-directory))))
+ org-roam-directory)))
+ (attach-dir (if (boundp 'org-attach-id-dir) org-attach-id-dir (expand-file-name ".attach/" org-directory))))
(websocket-send-text ws
(json-encode
`((type . "variables")
(data .
(("dailyDir" .
,daily-dir)
+ ("attachDir" .
+ ,attach-dir)
("roamDir" . ,org-roam-directory)
("katexMacros" . ,org-roam-ui-latex-macros)))))))))