bastibe / org-journal

A simple org-mode based journaling mode
BSD 3-Clause "New" or "Revised" License
1.24k stars 123 forks source link

[Question / Discussion] How to have a different `org-jounal-dir` for different projects? #421

Open jeffbowman opened 11 months ago

jeffbowman commented 11 months ago

Imagine a directory structure like this:

/org/client1
          client1.org
/org/client1/project1
                        project1.org
/org/client1/project2
                        project2.org
/org/client2
          client2.org
/org/client2/project1
                        project1.org
                        notes.org

and what would be super cool (in my case) would be to have the journal folder fall under each project folder ala:

/org/client1/project1/journal
                                    c1p1-20231107
/org/client1/project2/journal
                                    c1p2-20231107

I was considering a flow similar to this: https://rostre.bearblog.dev/building-my-ideal-emacs-journal/ but not having success not having the different project entries interleaved in a single journal file. I tried setting org-journal-dir in a .dir-locals.el file located in the various project directories, but it seemed like it wasn't "working" in the sense that I would have different values for org-journal-dir based on where I was in the filesystem.

Is this concept even possible? If so, can you give me some guidance on how to go about it?

Thanks!!