# How to exclude daily notes from org-roam-node-find

**URL:** <https://org-roam.discourse.group/t/how-to-exclude-daily-notes-from-org-roam-node-find/2845>\
**Category:** How To\
**Created:** [November 1, 2022, 3:11am UTC](https://org-roam.discourse.group/t/how-to-exclude-daily-notes-from-org-roam-node-find/2845 "2022-11-01T03:11:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gary.ruizhang](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/gary.ruizhang/32/1233_2.png) [@gary.ruizhang](https://org-roam.discourse.group/u/gary.ruizhang)\
**Post date:** [November 1, 2022, 3:11am UTC](https://org-roam.discourse.group/t/how-to-exclude-daily-notes-from-org-roam-node-find/2845/1 "2022-11-01T03:11:41Z")

</div>

daily notes is not store in the same directory as org-roam-directory

 ![CleanShot 2022-11-01 at 11.03.57@2x](https://global.discourse-cdn.com/free1/uploads/orgroam/original/2X/6/6bacfbc12fcfb74084f3080602c3149285b5574d.png)

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [November 3, 2022, 2:50pm UTC](https://org-roam.discourse.group/t/how-to-exclude-daily-notes-from-org-roam-node-find/2845/2 "2022-11-03T14:50:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Wheest](https://avatars.discourse-cdn.com/v4/letter/w/e79b87/32.png) [@Wheest](https://org-roam.discourse.group/u/Wheest)\
**Post date:** [December 10, 2025, 9:33am UTC](https://org-roam.discourse.group/t/how-to-exclude-daily-notes-from-org-roam-node-find/2845/3 "2025-12-10T09:33:00Z")

</div>

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.,

```auto
(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`

```auto
(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)))))

```
