From 0062fc08917e9ee70148105fe5134e9f4dcf9aba Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 4 Dec 2021 13:44:47 +0100 Subject: fix: add org-attach-id-dir support (#153) --- org-roam-ui.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'org-roam-ui.el') 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))))))))) -- cgit v1.2.3