(feat)org-roam-tag-add: use tags separator as crm-separator (#2282)

Allows use of : in minibuffer to separate multiple selected tags.
This commit is contained in:
Hugo-Heagren
2022-12-02 07:57:41 +00:00
committed by GitHub
parent 4e6f934690
commit c2e852e102

View File

@ -1066,7 +1066,8 @@ and when nil is returned the node will be filtered out."
(defun org-roam-tag-add (tags)
"Add TAGS to the node at point."
(interactive
(list (completing-read-multiple "Tag: " (org-roam-tag-completions))))
(list (let ((crm-separator "[ ]*:[ ]*"))
(completing-read-multiple "Tag: " (org-roam-tag-completions)))))
(let ((node (org-roam-node-at-point 'assert)))
(save-excursion
(goto-char (org-roam-node-point node))