(fix)refs:support spaces in links (#2285)

Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
This commit is contained in:
Tim Lee
2022-12-02 16:55:04 +09:00
committed by GitHub
parent d95d25615e
commit 4e6f934690
4 changed files with 31 additions and 10 deletions

View File

@@ -1036,7 +1036,9 @@ and when nil is returned the node will be filtered out."
(let ((node (org-roam-node-at-point 'assert)))
(save-excursion
(goto-char (org-roam-node-point node))
(org-roam-property-add "ROAM_REFS" ref))))
(org-roam-property-add "ROAM_REFS" (if (memq " " (string-to-list ref))
(concat "\"" ref "\"")
ref)))))
(defun org-roam-ref-remove (&optional ref)
"Remove a REF from the node at point."