Open
Description
I am using this code to change the filters in the org roam server. But the change is not being reflected in the page right away. It needs to be explicitely reloaded. Is there a way to update the filter automatically in the page, or reload the page as soon as the update is made.
(setq org-roam-server-tags "")
(defun my-org-roam-server-tags()
"Process org-roam-server-tags"
(interactive)
(let* (
(tags (read-string "Tags: " org-roam-server-tags))
(tags-temp (cdr (split-string tags "\ [\+]")))
(plus (mapcar (lambda(a) (string-trim (car (split-string a "\ [\-]")))) tags-temp))
(tags-temp (cdr (split-string tags "\ [\-]")))
(minus (mapcar (lambda(a) (string-trim (car (split-string a "\ [\+]")))) tags-temp)))
(setq org-roam-server-default-include-filters (json-encode (mapcar (lambda (tag) (list (cons 'id tag ) (cons 'parent "tags"))) plus)))
(setq org-roam-server-default-exclude-filters (json-encode (mapcar (lambda (tag) (list (cons 'id tag ) (cons 'parent "tags"))) minus)))
(setq org-roam-server-tags tags)
))
Metadata
Metadata
Assignees
Labels
No labels
Activity