# Org-roam-dailies: New features

**URL:** <https://org-roam.discourse.group/t/org-roam-dailies-new-features/607>\
**Category:** Development\
**Created:** [August 7, 2020, 9:55am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607 "2020-08-07T09:55:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [August 7, 2020, 9:55am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/1 "2020-08-07T09:55:46Z")

</div>

Here’s a quick demo of the new features for Org-roam-dailies which will be merged with [#978](https://github.com/org-roam/org-roam/pull/978):

[![](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/836e5f4f27f8a426d365e041b3a5ca55ae7592d4.jpeg "Org-roam-dailies: Demonstration") ](https://www.youtube.com/watch?v=1q9x2aZCJJ4)

---

<div class="post-metadata">

**Author:** ![nmartin84](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nmartin84/32/313_2.png) [@nmartin84](https://org-roam.discourse.group/u/nmartin84)\
**Post date:** [August 8, 2020, 6:01pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/2 "2020-08-08T18:01:36Z")

</div>

Looks great, will it support the use of file templates?

---

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [August 8, 2020, 6:51pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/3 "2020-08-08T18:51:01Z")

</div>

Yes, via the `:head` keyword.

---

<div class="post-metadata">

**Author:** ![plantarum](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@plantarum](https://org-roam.discourse.group/u/plantarum)\
**Post date:** [September 9, 2020, 1:34pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/4 "2020-09-09T13:34:16Z")

</div>

This is a bit confusing. The video suggests this feature is available in v1.2.1, which is what I have installed via Melpa. But the new dailies features are only available in the scratch branch. Would you recommend I switch to follow the git repo, and if so, which branch for beginners? “Scratch” suggests perhaps more ‘alpha’ than I might like while I’m getting started.

---

<div class="post-metadata">

**Author:** ![jethro](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jethro](https://org-roam.discourse.group/u/jethro)\
**Post date:** [September 10, 2020, 5:09am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/5 "2020-09-10T05:09:45Z")

</div>

The video is simply a preview written when Org-roam was in v1.2.1, the branch should be merged soon.

---

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [November 10, 2020, 4:14pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/6 "2020-11-10T16:14:45Z")

</div>

Aeons later, the PR has been merged. Enjoy!

---

<div class="post-metadata">

**Author:** ![jburkhard](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jburkhard/32/252_2.png) [@jburkhard](https://org-roam.discourse.group/u/jburkhard)\
**Post date:** [November 13, 2020, 9:21am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/7 "2020-11-13T09:21:12Z")

</div>

Please help me out with this one (Windows10, ORG9.4-31, Org-Roam1.2.3):

_snip config_  
(setq org-roam-directory (file-truename “C:/Users/JochenBurkhardi/CloudDrive/Cloud~com~appsonthemove~beorg/org/”))  
(setq org-roam-dailies-directory “dailies”)

- Whatever I try, my org-roam-dailies land only in ~/org but NOT in the - existing - ~/org/dailes folder
- I even tries the directory-name “~/org/dailies/” with and without “/”
- Yes, my HOME is set correctly in Windows to the above folder (without the /org of course)
- So I figured, it might have to do with Windows file and folder syntax?

Thank you in advance for your kind support and have a sunny day,  
Jochen

---

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [November 13, 2020, 10:42am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/8 "2020-11-13T10:42:50Z")

</div>

> [@jburkhard](#):
>
> Whatever I try, my org-roam-dailies land only in ~/org but NOT in the - existing - ~/org/dailes folder

To quote the [manual](https://www.orgroam.com/manual.html#Configuration):

> **Make sure that `org-roam-dailies-directory` appears in `:file-name` for your notes to be recognized as daily-notes.** You can have different templates placing their notes in different directories, but the one in `org-roam-dailies-directory` will be considered as the main one in commands. [emphasis added]

So, you need to mention the `org-roam-dailies-directory` _inside_ the template (`:file-name`).

---

<div class="post-metadata">

**Author:** ![jburkhard](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jburkhard/32/252_2.png) [@jburkhard](https://org-roam.discourse.group/u/jburkhard)\
**Post date:** [November 13, 2020, 10:54am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/9 "2020-11-13T10:54:51Z")

</div>

Thank you very much for this quick answer.  
But how is this done (see my snippet):  
(setq org-roam-capture-templates  
'((“d” “default” plain (function org-roam-capture–get-point)  
“%?”  
:file-name “{slug}" :head "#+TITLE: {title}\n#+CREATED: %\<%Y-%m-%d\>\n#+ROAM\_ALIAS:\n#+ROAM\_TAGS:\n\n\* What’s on?”  
:unnarrowed t)  
))  
(setq org-roam-dailies-capture-templates  
'((“a” “daily” plain #'org-roam–capture-get-point “”  
:immediate-finish t  
:file-name “%\<%Y-%m-%d\>”  
:head “#+TITLE: %\<%A, %e %B %Y\>\n#+CREATED: %\<%Y-%m-%d\>\n#+ROAM\_ALIAS:\n#+ROAM\_TAGS:\n\n\* What’s on?”  
:unnarrowed t)  
))

---

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [November 13, 2020, 11:08am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/10 "2020-11-13T11:08:06Z")

</div>

```auto
(setq org-roam-capture-templates
      '(("d" "default" plain (function org-roam-capture–get-point)
         "%?"
         :file-name "{slug}"
         :head "#+TITLE: {title}\n#+CREATED: %<%Y-%m-%d>\n#+ROAM_ALIAS:\n#+ROAM_TAGS:\n\n* What’s on?"
         :unnarrowed t)))

(setq org-roam-dailies-capture-templates
      '(("a" "daily" plain #'org-roam–capture-get-point ""
         :immediate-finish t
         :file-name "dailies/%<%Y-%m-%d>" ; <---------
         :head "#+TITLE: %<%A, %e %B %Y>\n#+CREATED: %<%Y-%m-%d>\n#+ROAM_ALIAS:\n#+ROAM_TAGS:\n\n* What’s on?"
         :unnarrowed t)))

```

---

<div class="post-metadata">

**Author:** ![jburkhard](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jburkhard/32/252_2.png) [@jburkhard](https://org-roam.discourse.group/u/jburkhard)\
**Post date:** [November 13, 2020, 11:32am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/11 "2020-11-13T11:32:56Z")

</div>

That was simple. Thank you soo much.  
One more thing: Will it now be possible to move all dailes to the dailies/ folder?  
Tried it before and all links where “red”, meaning not recognized.  
Anything I can do to make that work?

---

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [November 13, 2020, 11:44am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/12 "2020-11-13T11:44:12Z")

</div>

You’d have to move them _inside_ Emacs (i.e. with `dired`) so that we can catch the renames and fix all your links accordingly.

---

<div class="post-metadata">

**Author:** ![jburkhard](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jburkhard/32/252_2.png) [@jburkhard](https://org-roam.discourse.group/u/jburkhard)\
**Post date:** [November 13, 2020, 11:47am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/13 "2020-11-13T11:47:43Z")

</div>

Sure, that’s what I did.  
And now that:

 ![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/5d4e50310dcc8a8a0c16a839c4cfa42458108bda.png)

---

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [November 13, 2020, 11:59am UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/14 "2020-11-13T11:59:10Z")

</div>

That’s not normal, and you might want to repeat the migration after restarting your Emacs and Org-roam.

---

<div class="post-metadata">

**Author:** ![jburkhard](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jburkhard/32/252_2.png) [@jburkhard](https://org-roam.discourse.group/u/jburkhard)\
**Post date:** [November 13, 2020, 12:22pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/15 "2020-11-13T12:22:46Z")

</div>

Meaning:

- Moving all daily files to dailies/
- Restarting Emacs?
- Please note, that I before only moved the November files to dailies/

---

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [November 13, 2020, 12:24pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/16 "2020-11-13T12:24:35Z")

</div>

No, move them back to their originating directory (where the links would presumably work), restart Emacs, and try again.

---

<div class="post-metadata">

**Author:** ![jburkhard](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jburkhard/32/252_2.png) [@jburkhard](https://org-roam.discourse.group/u/jburkhard)\
**Post date:** [November 13, 2020, 12:38pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/17 "2020-11-13T12:38:10Z")

</div>

Ok. Sounds like a good idea, on it:  
(org-roam) total: Δ570, files-modified: Δ116, ids: Δ98, links: Δ1318, tags: Δ102, titles: Δ118, refs: Δ0, deleted: Δ116  
BUT, unfortunately each and any link in the 116 dailies/ org-files is red (file:\<[filename.org](http://filename.org)\> and not something like …/\<[filename.org](http://filename.org)\>

---

<div class="post-metadata">

**Author:** ![brab](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/brab/32/531_2.png) [@brab](https://org-roam.discourse.group/u/brab)\
**Post date:** [November 14, 2020, 3:30pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/18 "2020-11-14T15:30:00Z")

</div>

I’m hesitant to move daily notes into a subfolder to avoid breaking links. Is using org-roam-dailies in the main note folder supported?

If not, I currently have `org-roam-rename-file-on-title-change` set to `nil` (because I have issues renaming titles during capture). Do I need to revert it to `t` for moving daily notes?

---

<div class="post-metadata">

**Author:** ![zaeph](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/zaeph/32/764_2.png) [@zaeph](https://org-roam.discourse.group/u/zaeph)\
**Post date:** [November 14, 2020, 3:48pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/19 "2020-11-14T15:48:32Z")

</div>

> [@brab](#):
>
> Is using org-roam-dailies in the main note folder supported?

Not as is. The way we find daily-notes right now is by listing the files in `org-roam-dailies-directory`, which is not helpful for anything that is outside of it. I’ll work something out in the near future, but I need to rethink how we use subfolders with `org-roam` first.

> [@brab](#):
>
> If not, I currently have `org-roam-rename-file-on-title-change` set to `nil` (because I have issues renaming titles during capture). Do I need to revert it to `t` for moving daily notes?

No. The renaming that happens in the background is independent of that value.

---

<div class="post-metadata">

**Author:** ![brab](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/brab/32/531_2.png) [@brab](https://org-roam.discourse.group/u/brab)\
**Post date:** [November 14, 2020, 4:52pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607/20 "2020-11-14T16:52:32Z")

</div>

So I’m giving it a try, and when I move a daily note from the main folder to the `daily` subfolder, every link it contains is now broken, and backlinks to this daily note are also broken.

This is not surprising as these links as of the form `file:…`, and they don’t mention the directory change.

Am I doing something wrong, or is this a bug?

[Next page](https://org-roam.discourse.group/t/org-roam-dailies-new-features/607.md?page=2)
