mirror of
https://github.com/org-roam/org-roam
synced 2025-08-09 12:57:22 -05:00
(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:
@ -1066,7 +1066,8 @@ and when nil is returned the node will be filtered out."
|
|||||||
(defun org-roam-tag-add (tags)
|
(defun org-roam-tag-add (tags)
|
||||||
"Add TAGS to the node at point."
|
"Add TAGS to the node at point."
|
||||||
(interactive
|
(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)))
|
(let ((node (org-roam-node-at-point 'assert)))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (org-roam-node-point node))
|
(goto-char (org-roam-node-point node))
|
||||||
|
Reference in New Issue
Block a user