diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-12-04 13:44:47 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-04 13:44:47 +0100 |
commit | 0062fc08917e9ee70148105fe5134e9f4dcf9aba (patch) | |
tree | 43cae6d205afd8fdf4f9e70e93eeecf50b2bc109 /org-roam-ui.el | |
parent | 4edbd2abae11def87284d6f7a4a2e1fd4e122cd6 (diff) |
fix: add org-attach-id-dir support (#153)
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 5 |
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))))))))) |