How did you configure this with org roam? #4
benbot
announced in
Announcements
Replies: 2 comments
-
On 2023-12-27 14:33, Benjamin Botwin wrote:
How did you configure this with org roam?
On my end, I haven't configured this with org-roam, as stated in the
last part of the README, but there's no reason for it not to work with
org-roam.
I use a file layout that closely follows the PARA method
(https://fortelabs.com/blog/para/). I actually have two separated bases
: one for knowledge (roam), one for tasks and journaling (outside
org-roam).
My base for knowledge is under ~/resources, the one for journaling is
under ~/spheres/life/journal. My org-directory is thus ~/, this is not
optimal for file searches, but I get along with it for now.
I've been unable to get the roam dailies into my org-agenda-files.
The key to proper configuration is to know what criteria on a note you
want to make it tracked by the org-agenda-files variable. As stated in
the README, *you should redefine the*
=org-agenda-files-track-predicate= *to align with your desired*
=org-agenda-files=. How do you know if it does?
1) take an org-file you want to record, add a source block
#+begin_src elisp
(defun org-agenda-files-track-predicate ()
"Check if the file should be added to the variable `org-agenda-files'."
(org-element-map
(org-element-parse-buffer 'headline)
'headline
;; This is the predicate matching if a headline makes an org-agenda-file.
(lambda (h)
(eq (org-element-property :todo-type h) 'todo))
nil 'first-match))
(org-agenda-files-track-predicate)
#+end_src
With your cursor on the org-block, you can run
`org-babel-execute-src-block`, the boolean result will tell you if the
file is considered to be recorded or not.
If you want to record a file while receving a nil result, you have to
adjust the predicate yourself, feel free to share your layout and result
if you do. The logic for org-ql is different, let me know if that was
your choice.
It seems like this mode only looks at the top level of the
org-directory. Did you put all your roam files there?
Yes, my org-roam files are under my org-directory. I suppose we can make
this "directory to search in" a variable with a default to org-directory
or something like this if this isn't your case.
…--
Best regards,
Nicolas Graves
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I converted the issue in a discussion because it's more adapted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How did you configure this with org roam?
I've been unable to get the roam dailies into my org-agenda-files.
It seems like this mode only looks at the top level of the org-directory. Did you put all your roam files there?
Or am i misunderstanding some thing?
Beta Was this translation helpful? Give feedback.
All reactions