# Capturing to a node by projectile title

**URL:** <https://org-roam.discourse.group/t/capturing-to-a-node-by-projectile-title/3113>\
**Category:** How To\
**Created:** [June 15, 2023, 9:52am UTC](https://org-roam.discourse.group/t/capturing-to-a-node-by-projectile-title/3113 "2023-06-15T09:52:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamkarlson](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/iamkarlson/32/1336_2.png) [@iamkarlson](https://org-roam.discourse.group/u/iamkarlson)\
**Post date:** [June 15, 2023, 9:52am UTC](https://org-roam.discourse.group/t/capturing-to-a-node-by-projectile-title/3113/1 "2023-06-15T09:52:45Z")

</div>

Hi there,  
I’m looking to make some templates that I will use for capturing tasks and notes for a certain project. with org-capture, I can use something like this (from doomemacs):

```auto
          ("o" "Centralized templates for projects")
          ("ot" "Project todo" entry
           (function +org-capture-central-project-todo-file)
           "* TODO %?\n %i\n %a"
           :heading "Tasks"
           :prepend nil)
          ("on" "Project notes" entry
           (function +org-capture-central-project-notes-file)
           "* %U %?\n %i\n %a"
           :heading "Notes"
           :prepend t)
          ("oc" "Project changelog" entry
           (function +org-capture-central-project-changelog-file)
           "* %U %?\n %i\n %a"
           :heading "Changelog"
           :prepend t)

```

Template itself is another topic, but I’m interested in an alternative for functions such:

- org-capture-central-project-todo-file
- org-capture-central-project-notes-file
- org-capture-central-project-changelog-file

I would love to use them to find a node in org-roam by projectile title, and capture to a certain heading like “Tasks”, “Notes”, “Changelog”. Of course there can be collisions, so I think to have some interactive warning if this happens.

What would be the easiest way to do so?

---

<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:** [June 19, 2023, 5:47pm UTC](https://org-roam.discourse.group/t/capturing-to-a-node-by-projectile-title/3113/2 "2023-06-19T17:47:04Z")

</div>

> [@iamkarlson](#):
>
> find a node in org-roam by projectile title

I think you can achieve this by `%(sexp)`. I suggest you refer to an example in [this post](https://org-roam.discourse.group/t/how-to-insert-a-function-to-the-file-name-in-org-roam-capture-templates/2108).

> [@iamkarlson](#):
>
> capture to a certain heading like “Tasks”, “Notes”, “Changelog”.

I think this second part is something you can do with setting the type to `entry` (instead of the default `plain`) and… probably with a targe that includes `olp`. There are many posts about it on this forum ans elsewhere, but I think [this](https://org-roam.discourse.group/t/help-with-template-and-file-olp/2264/9) might be useful.
