|
|
@ -254,12 +254,14 @@ tasks." |
|
|
|
(prop-tags (org-roam--extract-tags-prop file)) |
|
|
|
(tags prop-tags)) |
|
|
|
(if (nico-org-project-p) |
|
|
|
(setq tags (cons "Project" tags)) |
|
|
|
(setq tags (remove "Project" tags))) |
|
|
|
(unless (eq prop-tags tags) |
|
|
|
(unless (seq-contains-p tags "Project") |
|
|
|
(setq tags (cons "Project" tags))) |
|
|
|
(when (seq-contains-p tags "Project") |
|
|
|
(setq tags (remove "Project" tags)))) |
|
|
|
(unless (equal prop-tags tags) |
|
|
|
(org-roam--set-global-prop |
|
|
|
"ROAM_TAGS" |
|
|
|
(combine-and-quote-strings (seq-uniq tags))))))) |
|
|
|
(combine-and-quote-strings tags)))))) |
|
|
|
|
|
|
|
(defun nico-org-roam-buffer-p () |
|
|
|
"Return non-nil if the currently visited buffer is a note." |
|
|
|