daily notes is not store in the same directory as org-roam-directory
Do you want the daily notes to be still in Org-roam database for some reason and exclude them only from org-roam-node-find? If so, you can use the directory as the key to exclude them — you should be able to use the FILTER-FN — see the doc string of node-find command. I believe there are some examples in this forum if you search.
You can also exclude daily notes completely from the database. See a user option — I can’t look up the exact name right now (no PC with me) but something like org-roam-exclude… I think. It works with regexp.
Assuming that your daily notes have a filetag, e.g., #+filetags: :dailies:, then one can also use this tag as a FILTER-FN.
E.g.,
(defun my/org-roam-node-find-no-dailies ()
"Like org-roam-node-find but hides nodes tagged :dailies:."
(interactive)
(org-roam-node-find
nil ;; OTHER-WINDOW
nil ;; INITIAL-INPUT
(lambda (node)
(not (my/org-roam-node-daily-p node)))))
(defun my/org-roam-node-daily-p (node)
"Return non-nil if NODE belongs to a daily file tagged :dailies:."
(member "dailies" (org-roam-node-tags node)))
One can then remap the bindings for org-roam-node-find to my/org-roam-node-find-no-dailies, e.g., (“C-c r f” . my/org-roam-node-find-no-dailies).
Similarly, one can apply the filter-fn to other roam functions, like node-insert
(defun my/org-roam-node-insert-no-dailies ()
"Like `org-roam-node-insert` but excludes nodes tagged :dailies:."
(interactive)
(org-roam-node-insert
(lambda (node)
(not (my/org-roam-node-daily-p node)))))